XNIO API 2.1.0.CR2

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
 String getName()
          Get the name of this provider's type.
 Xnio getNewInstance(XnioConfiguration configuration)
          Get a new provider instance.
 

Method Detail

getName

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

Returns:
the name

getNewInstance

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

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

XNIO API 2.1.0.CR2

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