public final class ConfigurationDependentFactory extends Object
ConfigurationDependentFactory
can create instances from a configuration
which can be configured with a class name (for example ConfigParameter.CONNECTION_ID_GENERATOR
.
The created instances are hold as a singleton.Modifier and Type | Method and Description |
---|---|
static EventServiceConfiguration |
getConfiguration()
Returns the configuration which was specified with the initialization of the
ConfigurationDependentFactory . |
ConnectionIdGenerator |
getConnectionIdGenerator()
Returns the configured
ConnectionIdGenerator . |
ConnectionStrategyServerConnector |
getConnectionStrategyServerConnector()
Returns the server side part / connector of the configured connection strategy.
|
static ConfigurationDependentFactory |
getInstance()
This method returns the
ConfigurationDependentFactory as a singleton. |
static ConfigurationDependentFactory |
getInstance(EventServiceConfiguration aConfiguration)
This method should be used to create an instance of
ConfigurationDependentFactory . |
static void |
reset() |
public static ConfigurationDependentFactory getInstance(EventServiceConfiguration aConfiguration)
ConfigurationDependentFactory
.
ConfigurationDependentFactory
is a singleton, so this method returns always the same instance of
ConfigurationDependentFactory
. This method initializes the factory with a configuration and should be
called before getInstance()
is used, because it has to be initialized with
with a configuration at first.ConfigurationDependentFactory
(singleton)public static ConfigurationDependentFactory getInstance()
ConfigurationDependentFactory
as a singleton. It has to be initialized
with a configuration at first. Therefore the method getInstance(EventServiceConfiguration)
should
be used at first.ConfigurationDependentFactory
(singleton)public ConnectionIdGenerator getConnectionIdGenerator()
ConnectionIdGenerator
.ConnectionIdGenerator
ConfigParameter.CONNECTION_ID_GENERATOR
public ConnectionStrategyServerConnector getConnectionStrategyServerConnector()
ConfigParameter.CONNECTION_STRATEGY_SERVER_CONNECTOR
public static EventServiceConfiguration getConfiguration()
ConfigurationDependentFactory
.ConfigurationDependentFactory
ConfigurationDependentFactory#getInstance(EventServiceConfiguration)}
public static void reset()
Copyright © 2012. All Rights Reserved.