public abstract class AbstractServerFactory extends Object implements Configurable, LogEnabled
AbstractConfigurableAsyncServer's via configuration files| Constructor and Description |
|---|
AbstractServerFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration config)
Configure the object.
|
protected abstract List<AbstractConfigurableAsyncServer> |
createServers(org.slf4j.Logger log,
org.apache.commons.configuration.HierarchicalConfiguration config)
Create
AbstractConfigurableAsyncServer servers, inject dependencies and configure them before return all fo them in a List |
void |
destroy() |
List<AbstractConfigurableAsyncServer> |
getServers()
Return all
AbstractConfigurableAsyncServer instances that was create via this Factory |
void |
init() |
void |
setLog(org.slf4j.Logger log)
Sets the service log.
|
protected abstract List<AbstractConfigurableAsyncServer> createServers(org.slf4j.Logger log, org.apache.commons.configuration.HierarchicalConfiguration config) throws Exception
AbstractConfigurableAsyncServer servers, inject dependencies and configure them before return all fo them in a Listlog - config - Exceptionpublic void configure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
Configurableconfigure in interface Configurableorg.apache.commons.configuration.ConfigurationExceptionpublic void setLog(org.slf4j.Logger log)
LogEnabledsetLog in interface LogEnabledlog - not null@PostConstruct public void init() throws Exception
Exceptionpublic List<AbstractConfigurableAsyncServer> getServers()
AbstractConfigurableAsyncServer instances that was create via this Factory@PreDestroy public void destroy()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.