public abstract class AbstractServerFactory extends Object implements Configurable, LogEnabled
AbstractConfigurableAsyncServer
's via configuration filesConstructor 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 List
log
- config
- Exception
public void configure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
Configurable
configure
in interface Configurable
org.apache.commons.configuration.ConfigurationException
public void setLog(org.slf4j.Logger log)
LogEnabled
setLog
in interface LogEnabled
log
- not null@PostConstruct public void init() throws Exception
Exception
public 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.