Package step.functions.handler
Class FunctionHandlerFactory
- java.lang.Object
-
- step.functions.handler.FunctionHandlerFactory
-
public class FunctionHandlerFactory extends java.lang.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 AbstractFunctionHandler
create(java.lang.ClassLoader classloader, java.lang.String class_, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new instance ofAbstractFunctionHandler
AbstractFunctionHandler
initialize(AbstractFunctionHandler functionHandler, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, java.util.Map<java.lang.String,java.lang.String> properties)
Initializes an instance ofAbstractFunctionHandler
-
-
-
Method Detail
-
create
public AbstractFunctionHandler create(java.lang.ClassLoader classloader, java.lang.String class_, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, java.util.Map<java.lang.String,java.lang.String> properties) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
Creates 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:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
-
initialize
public AbstractFunctionHandler initialize(AbstractFunctionHandler functionHandler, step.grid.agent.tokenpool.TokenSession tokenSession, step.grid.agent.tokenpool.TokenReservationSession tokenReservationSession, java.util.Map<java.lang.String,java.lang.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
-
-