Package org.apache.cxf.bus.managers
Class DestinationFactoryManagerImpl
java.lang.Object
org.apache.cxf.bus.managers.DestinationFactoryManagerImpl
- All Implemented Interfaces:
DestinationFactoryManager
public final class DestinationFactoryManagerImpl
extends Object
implements DestinationFactoryManager
-
Constructor Summary
ConstructorDescriptionDestinationFactoryManagerImpl
(Map<String, DestinationFactory> destinationFactories) DestinationFactoryManagerImpl
(Map<String, DestinationFactory> destinationFactories, Bus b) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregisterDestinationFactory
(String namespace) Unregister aDestinationFactory
.getDestinationFactory
(String namespace) Returns the conduit initiator for the given namespace, constructing it (and storing in the cache for future reference) if necessary, using its list of factory classname to namespace mappings.Returns theDestinationFactory
registered with the specified URI, loading the appropriate plugin if necessary.Returns all registered (as of the moment of the call) destination factories.void
registerDestinationFactory
(String namespace, DestinationFactory factory) Associates a name, often a URI, with aDestinationFactory
when registering with theBus
'sTransportRegistry
.void
-
Constructor Details
-
DestinationFactoryManagerImpl
public DestinationFactoryManagerImpl() -
DestinationFactoryManagerImpl
-
DestinationFactoryManagerImpl
-
DestinationFactoryManagerImpl
-
-
Method Details
-
setBus
-
registerDestinationFactory
Description copied from interface:DestinationFactoryManager
Associates a name, often a URI, with aDestinationFactory
when registering with theBus
'sTransportRegistry
.- Specified by:
registerDestinationFactory
in interfaceDestinationFactoryManager
- Parameters:
namespace
- A string containing the name used to identify theDestinationFactory
factory
- TheDestinationFactory
to be registered.
-
deregisterDestinationFactory
Description copied from interface:DestinationFactoryManager
Unregister aDestinationFactory
.- Specified by:
deregisterDestinationFactory
in interfaceDestinationFactoryManager
- Parameters:
namespace
- A string containing the name of theDestinationFactory
.
-
getDestinationFactory
Returns the conduit initiator for the given namespace, constructing it (and storing in the cache for future reference) if necessary, using its list of factory classname to namespace mappings.- Specified by:
getDestinationFactory
in interfaceDestinationFactoryManager
- Parameters:
namespace
- the namespace.- Returns:
- the registered
DestinationFactory
- Throws:
BusException
-
getDestinationFactoryForUri
Description copied from interface:DestinationFactoryManager
Returns theDestinationFactory
registered with the specified URI, loading the appropriate plugin if necessary.- Specified by:
getDestinationFactoryForUri
in interfaceDestinationFactoryManager
- Parameters:
uri
- the uri to look upDestinationFactory
- Returns:
- the registered
DestinationFactory
-
getRegisteredDestinationFactoryNames
Description copied from interface:DestinationFactoryManager
Returns all registered (as of the moment of the call) destination factories.- Specified by:
getRegisteredDestinationFactoryNames
in interfaceDestinationFactoryManager
- Returns:
- all registered (as of the moment of the call) destination factories.
-