Package org.apache.cxf.transport
Interface DestinationFactoryManager
- All Known Implementing Classes:
DestinationFactoryManagerImpl
public interface DestinationFactoryManager
The DestinationFactoryManager provides an interface to register and retrieve
transport factories.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Unregister aDestinationFactory
.getDestinationFactory
(String name) Returns theDestinationFactory
registered with the specified name, loading the appropriate plugin if necessary.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 name, DestinationFactory factory) Associates a name, often a URI, with aDestinationFactory
when registering with theBus
'sTransportRegistry
.
-
Method Details
-
registerDestinationFactory
Associates a name, often a URI, with aDestinationFactory
when registering with theBus
'sTransportRegistry
.- Parameters:
name
- A string containing the name used to identify theDestinationFactory
factory
- TheDestinationFactory
to be registered.
-
deregisterDestinationFactory
Unregister aDestinationFactory
.- Parameters:
name
- A string containing the name of theDestinationFactory
.
-
getRegisteredDestinationFactoryNames
Returns all registered (as of the moment of the call) destination factories.- Returns:
- all registered (as of the moment of the call) destination factories.
-
getDestinationFactory
Returns theDestinationFactory
registered with the specified name, loading the appropriate plugin if necessary.- Parameters:
name
-- Returns:
- the registered
DestinationFactory
- Throws:
BusException
-
getDestinationFactoryForUri
Returns theDestinationFactory
registered with the specified URI, loading the appropriate plugin if necessary.- Parameters:
uri
- the uri to look upDestinationFactory
- Returns:
- the registered
DestinationFactory
- Throws:
BusException
-