Package org.kuali.rice.kew.api.extension
Class ExtensionUtils
java.lang.Object
org.kuali.rice.kew.api.extension.ExtensionUtils
Contains utilities related to the loading of extension resources.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TloadExtension(ExtensionDefinitionContract extensionDefinition) Loads the extension object for the given extension definition.static <T> TloadExtension(ExtensionDefinitionContract extensionDefinition, String defaultApplicationId) Loads the extension object for the given extension definition, using the default applicationId if the given extension definition has a null applicationId.
-
Method Details
-
loadExtension
Loads the extension object for the given extension definition.- Type Parameters:
T- the type of the extension object which is to be loaded- Parameters:
extensionDefinition- the definition of the extension to load- Returns:
- the loaded extension, or null if no extension was loaded for the given definition
-
loadExtension
public static <T> T loadExtension(ExtensionDefinitionContract extensionDefinition, String defaultApplicationId) Loads the extension object for the given extension definition, using the default applicationId if the given extension definition has a null applicationId.- Type Parameters:
T- the type of the extension object which is to be loaded- Parameters:
extensionDefinition- the definition of the extension to loaddefaultApplicationId- the application id to use when attempting to loading the extension if the application id on the given definition is null- Returns:
- the loaded extension, or null if no extension was loaded for the given definition
-