public class TurbineAssemblerBrokerService extends TurbineBaseService implements AssemblerBrokerService
configuration, name, serviceBroker
initableBroker, isInitialized
SERVICE_NAME
Constructor and Description |
---|
TurbineAssemblerBrokerService() |
Modifier and Type | Method and Description |
---|---|
<T extends Assembler> |
getAssembler(Class<T> type,
String name)
Attempt to retrieve an Assembler of a given type with
a name.
|
<T extends Assembler> |
getLoader(Class<T> type)
Get a Loader for the given assembler type
|
void |
init()
Initializes the AssemblerBroker and loads the AssemblerFactory
classes registered in TurbineResources.Properties.
|
<T extends Assembler> |
registerFactory(AssemblerFactory<T> factory)
Register a new AssemblerFactory
|
init, init, shutdown
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
getInit, getInitableBroker, setInit, setInitableBroker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getName, getProperties, setName, setServiceBroker
getInit, init, setInitableBroker, shutdown
public TurbineAssemblerBrokerService()
public void init() throws InitializationException
init
in interface Initable
init
in class TurbineBaseService
InitializationException
- if problems occur while registering the factoriespublic <T extends Assembler> void registerFactory(AssemblerFactory<T> factory)
registerFactory
in interface AssemblerBrokerService
T
- the type of the assemblerfactory
- factory to registerpublic <T extends Assembler> T getAssembler(Class<T> type, String name) throws TurbineException
getAssembler
in interface AssemblerBrokerService
T
- the type of the assemblertype
- type of Assemblername
- name of the requested AssemblerTurbineException
- if the assembler could not be loadedpublic <T extends Assembler> Loader<T> getLoader(Class<T> type)
getLoader
in interface AssemblerBrokerService
T
- the type of the assemblertype
- The Type of the AssemblerCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.