org.kuali.rice.kew.api.extension
Class ExtensionUtils

java.lang.Object
  extended by org.kuali.rice.kew.api.extension.ExtensionUtils

public final class ExtensionUtils
extends Object

Contains utilities related to the loading of extension resources.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static
<T> T
loadExtension(ExtensionDefinitionContract extensionDefinition)
          Loads the extension object for the given extension definition.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadExtension

public static <T> T loadExtension(ExtensionDefinitionContract extensionDefinition)
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 load
defaultApplicationId - 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


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.