|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.config.SpringConfig
public class SpringConfig
The application's Spring-based configuration. A global singleton
instance of this class is created by Spring during the creation of
the application's ApplicationContext, and it contains all
end-user configuration of the application.
| Constructor Summary | |
|---|---|
SpringConfig()
Creates a new application configuration, which becomes the global singleton. |
|
SpringConfig(SpringBrokers brokers,
SpringSelector selector,
MessageFilter supportedMessages,
OrderFilter allowedOrders,
String serverHost,
int serverPort,
long serverSessionLife,
ConnectionFactory incomingCF,
ConnectionFactory outgoingCF,
IDFactory idFactory,
ReportHistoryServices reportHistoryServices,
OrderInfoCache orderInfoCache)
Creates a new application configuration with the given properties. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
OrderFilter |
getAllowedOrders()
Returns the receiver's filter of allowed orders. |
SpringBrokers |
getBrokers()
Returns the receiver's broker configurations. |
IDFactory |
getIDFactory()
Returns the receiver's ID generation factory. |
ConnectionFactory |
getIncomingConnectionFactory()
Returns the receiver's connection factory for incoming connections. |
OrderInfoCache |
getOrderInfoCache()
Returns the receiver's order information cache. |
ConnectionFactory |
getOutgoingConnectionFactory()
Returns the receiver's connection factory for outgoing connections. |
ReportHistoryServices |
getReportHistoryServices()
Returns the receiver's report history services provider. |
SpringSelector |
getSelector()
Returns the receiver's broker selector. |
String |
getServerHost()
Returns the receiver's host name for web services. |
int |
getServerPort()
Returns the receiver's port for web services. |
long |
getServerSessionLife()
Returns the receiver's web services session lifetime. |
static SpringConfig |
getSingleton()
Returns the global singleton configuration. |
MessageFilter |
getSupportedMessages()
Returns the receiver's filter of supported messages. |
void |
setAllowedOrders(OrderFilter allowedOrders)
Sets the receiver's filter of allowed orders to the given one. |
void |
setBrokers(SpringBrokers brokers)
Sets the receiver's broker configurations to the given ones. |
void |
setIDFactory(IDFactory idFactory)
Sets the receiver's ID generation factory to the given one. |
void |
setIncomingConnectionFactory(ConnectionFactory incomingCF)
Sets the receiver's connection factory for incoming connections to the given one. |
void |
setOrderInfoCache(OrderInfoCache orderInfoCache)
Sets the receiver's order information cache to the given one. |
void |
setOutgoingConnectionFactory(ConnectionFactory outgoingCF)
Sets the receiver's connection factory for outgoing connections to the given one. |
void |
setReportHistoryServices(ReportHistoryServices reportHistoryServices)
Sets the receiver's report history services provider to the given one. |
void |
setSelector(SpringSelector selector)
Sets the receiver's broker selector to the given one. |
void |
setServerHost(String serverHost)
Sets the receiver's host name for web services to the given value. |
void |
setServerPort(int serverPort)
Sets the receiver's port for web services to the given value. |
void |
setServerSessionLife(long serverSessionLife)
Sets the receiver's web services session lifetime to the given value. |
static void |
setSingleton(SpringConfig singleton)
Sets the global singleton configuration to the given one. |
void |
setSupportedMessages(MessageFilter supportedMessages)
Sets the receiver's filter of supported messages to the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringConfig()
public SpringConfig(SpringBrokers brokers,
SpringSelector selector,
MessageFilter supportedMessages,
OrderFilter allowedOrders,
String serverHost,
int serverPort,
long serverSessionLife,
ConnectionFactory incomingCF,
ConnectionFactory outgoingCF,
IDFactory idFactory,
ReportHistoryServices reportHistoryServices,
OrderInfoCache orderInfoCache)
throws I18NException
brokers - The broker configurations.selector - The broker selector.supportedMessages - The filter of supported messages.allowedOrders - The filter of allowed orders.serverHost - The host name for web services.serverPort - The port for web services.serverSessionLife - The web services session lifetime, in
seconds.incomingCF - The connection factory for incoming connections.outgoingCF - The connection factory for outgoing connections.idFactory - The ID generation factory.reportHistoryServices - The report history services provider.orderInfoCache - The order info cache.
I18NException| Method Detail |
|---|
public static void setSingleton(SpringConfig singleton)
singleton - The configuration. It may be null.public static SpringConfig getSingleton()
public void setBrokers(SpringBrokers brokers)
brokers - The configurations.public SpringBrokers getBrokers()
public void setSelector(SpringSelector selector)
selector - The selector.public SpringSelector getSelector()
public void setSupportedMessages(MessageFilter supportedMessages)
MessageFilterNoop.
supportedMessages - The filter.public MessageFilter getSupportedMessages()
public void setAllowedOrders(OrderFilter allowedOrders)
OrderFilterNoop.
allowedOrders - The filter.public OrderFilter getAllowedOrders()
public void setServerHost(String serverHost)
Node.DEFAULT_HOST.
serverHost - The host name.public String getServerHost()
public void setServerPort(int serverPort)
Node.DEFAULT_PORT.
serverPort - The port.public int getServerPort()
public void setServerSessionLife(long serverSessionLife)
SessionManager.INFINITE_SESSION_LIFESPAN.
serverSessionLife - The lifetime, in seconds.public long getServerSessionLife()
public void setIncomingConnectionFactory(ConnectionFactory incomingCF)
incomingCF - The factory.public ConnectionFactory getIncomingConnectionFactory()
public void setOutgoingConnectionFactory(ConnectionFactory outgoingCF)
outgoingCF - The factory.public ConnectionFactory getOutgoingConnectionFactory()
public void setIDFactory(IDFactory idFactory)
idFactory - The factory.public IDFactory getIDFactory()
public void setReportHistoryServices(ReportHistoryServices reportHistoryServices)
reportHistoryServices - The provider.public ReportHistoryServices getReportHistoryServices()
public void setOrderInfoCache(OrderInfoCache orderInfoCache)
orderInfoCache - The cache.public OrderInfoCache getOrderInfoCache()
public void afterPropertiesSet()
throws I18NException
afterPropertiesSet in interface InitializingBeanI18NException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||