Package step.functions.handler
Class FunctionHandlerFactory
- java.lang.Object
-
- step.functions.handler.FunctionHandlerFactory
-
public class FunctionHandlerFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description FunctionHandlerFactory(step.grid.contextbuilder.ApplicationContextBuilder applicationContextBuilder, step.grid.filemanager.FileManagerClient fileManagerClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractFunctionHandlercreate(ClassLoader classloader, String class_, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String,String> properties)Creates a new instance ofAbstractFunctionHandlerAbstractFunctionHandlerinitialize(AbstractFunctionHandler functionHandler, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String,String> properties)Initializes an instance ofAbstractFunctionHandler
-
-
-
Method Detail
-
create
public AbstractFunctionHandler create(ClassLoader classloader, String class_, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String,String> properties) throws InstantiationException, IllegalAccessException, ClassNotFoundException
Creates a new instance ofAbstractFunctionHandler- Parameters:
classloader- theClassLoaderto be used to load the specified classclass_- the class to be instantiatedtokenSession- theTokenSessionto be injected to theAbstractFunctionHandlertokenReservationSession- theTokenReservationSessionto be injected to theAbstractFunctionHandlerproperties- the properties to be injected to theAbstractFunctionHandler- Returns:
- the created instance of
AbstractFunctionHandler - Throws:
InstantiationExceptionIllegalAccessExceptionClassNotFoundException
-
initialize
public AbstractFunctionHandler initialize(AbstractFunctionHandler functionHandler, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String,String> properties)
Initializes an instance ofAbstractFunctionHandler- Parameters:
functionHandler- the instance to be initializedtokenSession- theTokenSessionto be injected to theAbstractFunctionHandlertokenReservationSession- theTokenReservationSessionto be injected to theAbstractFunctionHandlerproperties- the properties to be injected to theAbstractFunctionHandler- Returns:
- the initialized
AbstractFunctionHandler
-
-