Interface AssemblerBrokerService
-
- All Known Implementing Classes:
TurbineAssemblerBrokerService
public interface AssemblerBrokerService extends Service
An interface the Turbine Assembler service. See TurbineAssemblerBrokerService for more info.- Version:
- $Id$
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
Name of the Service
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Assembler>
TgetAssembler(Class<T> type, String name)
Attempts to load an Assembler of a type with a given name<T extends Assembler>
Loader<T>getLoader(Class<T> type)
Get a Loader for the given assembler type<T extends Assembler>
voidregisterFactory(AssemblerFactory<T> factory)
Register an AssemblerFactory class-
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
-
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
Name of the Service- See Also:
- Constant Field Values
-
-
Method Detail
-
registerFactory
<T extends Assembler> void registerFactory(AssemblerFactory<T> factory)
Register an AssemblerFactory class- Type Parameters:
T
- the type of the assembler- Parameters:
factory
- The factory object
-
getAssembler
<T extends Assembler> T getAssembler(Class<T> type, String name) throws TurbineException
Attempts to load an Assembler of a type with a given name- Type Parameters:
T
- the type of the assembler- Parameters:
type
- The Type of the Assemblername
- The Name of the Assembler- Returns:
- An Assembler object for the requested name and type
- Throws:
TurbineException
- Something went wrong while looking for the Assembler
-
-