Package step.functions.handler
Class FunctionHandlerFactory
java.lang.Object
step.functions.handler.FunctionHandlerFactory
-
Constructor Summary
ConstructorDescriptionFunctionHandlerFactory
(step.grid.contextbuilder.ApplicationContextBuilder applicationContextBuilder, step.grid.filemanager.FileManagerClient fileManagerClient) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ClassLoader classloader, String class_, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String, String> properties) Creates a new instance ofAbstractFunctionHandler
initialize
(AbstractFunctionHandler functionHandler, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, Map<String, String> properties) Initializes an instance ofAbstractFunctionHandler
-
Constructor Details
-
FunctionHandlerFactory
public FunctionHandlerFactory(step.grid.contextbuilder.ApplicationContextBuilder applicationContextBuilder, step.grid.filemanager.FileManagerClient fileManagerClient)
-
-
Method Details
-
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, ClassNotFoundExceptionCreates a new instance ofAbstractFunctionHandler
- Parameters:
classloader
- theClassLoader
to be used to load the specified classclass_
- the class to be instantiatedtokenSession
- theTokenSession
to be injected to theAbstractFunctionHandler
tokenReservationSession
- theTokenReservationSession
to be injected to theAbstractFunctionHandler
properties
- the properties to be injected to theAbstractFunctionHandler
- Returns:
- the created instance of
AbstractFunctionHandler
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
-
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
- theTokenSession
to be injected to theAbstractFunctionHandler
tokenReservationSession
- theTokenReservationSession
to be injected to theAbstractFunctionHandler
properties
- the properties to be injected to theAbstractFunctionHandler
- Returns:
- the initialized
AbstractFunctionHandler
-