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
public <T extends Assembler> void registerFactory(AssemblerFactory<T> factory)
registerFactory
in interface AssemblerBrokerService
factory
- factory to registerpublic <T extends Assembler> T getAssembler(Class<T> type, String name) throws TurbineException
getAssembler
in interface AssemblerBrokerService
type
- type of Assemblername
- name of the requested AssemblerTurbineException
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.