XNIO API 2.0.2.GA

org.jboss.xnio
Interface XnioProvider


public interface XnioProvider

A descriptor for automatically-discovered XNIO provider type. Since instances of this interface are constructed automatically, implementing classes should have a no-arg constructor.

To add an automatically-discovered XNIO provider type, create a file called "META-INF/services/org.jboss.xnio.XnioProvider" and populate it with the names of classes that implement this interface.

See Also:
ServiceLoader

Method Summary
 java.lang.String getName()
          Get the name of this provider's type.
 Xnio getNewInstance(XnioConfiguration configuration)
          Get a new provider instance.
 

Method Detail

getName

java.lang.String getName()
Get the name of this provider's type.

Returns:
the name

getNewInstance

Xnio getNewInstance(XnioConfiguration configuration)
                    throws java.io.IOException
Get a new provider instance.

Parameters:
configuration - the configuration to use
Returns:
the new provider instance
Throws:
java.io.IOException - if the new provider instance could not be created

XNIO API 2.0.2.GA

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