XNIO version 1.2.1.GA

org.jboss.xnio
Interface ConfigurableFactory<T>

Type Parameters:
T - the subject type
All Superinterfaces:
Configurable

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.
 
Methods inherited from interface org.jboss.xnio.channels.Configurable
getOption, getOptions, setOption
 

Method Detail

create

T create()
         throws IOException,
                IllegalStateException
Create the instance based on the configuration.

Returns:
the instance
Throws:
IOException - if an error occurs starting the instance
IllegalStateException - if the instance was already created

XNIO version 1.2.1.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.