org.jboss.xnio
Interface ConfigurableFactory<T>
- Type Parameters:
T
- the subject type
- All Superinterfaces:
- Configurable
- All Known Implementing Classes:
- BioUdpServerFactory, NioTcpAcceptorFactory, NioTcpConnectorFactory, NioTcpServerFactory, NioUdpServerFactory
public interface ConfigurableFactory<T>
- extends Configurable
A factory which produces an instance based on a configuration. Once the create
method is called, the instance
may no longer be reconfigured.
Method Summary |
T |
create()
Create the instance based on the configuration. |
create
T create()
throws java.io.IOException,
java.lang.IllegalStateException
- Create the instance based on the configuration.
- Returns:
- the instance
- Throws:
java.io.IOException
- if an error occurs starting the instance
java.lang.IllegalStateException
- if the instance was already created