com.ibm.wsspi.anno.classsource

Interface ClassSource_MappedSimple.SimpleClassProvider

Enclosing interface:
ClassSource_MappedSimple

  1. public static interface ClassSource_MappedSimple.SimpleClassProvider

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getName()
Answer a name for this provider.
  1. java.util.Collection<java.lang.String>
getResourceNames()
Answer the resource names of this provider.
  1. java.io.InputStream
openResource(java.lang.String resourceName)
Answer an input stream for a specified resource.

Method Detail

getName

  1. java.lang.String getName()

Answer a name for this provider. The name is used logging and is intended to be meaningful and easy to read.

Returns:
A friendly name for this simple class provider.

getResourceNames

  1. java.util.Collection<java.lang.String> getResourceNames( )

Answer the resource names of this provider. No order is presumed for the names, however, this may be supplied by an implementation.

The values must be proper class resource names. Any mapping of the names must be internal to the provider.

Returns:
The paths supplied by this simple class provider.

openResource

  1. java.io.InputStream openResource( java.lang.String resourceName)
  2. throws java.io.IOException

Answer an input stream for a specified resource. The path is expected to be one supplied by getResourceNames().

The result input stream must be closed.

Parameters:
resourceName - The resource to open as an input stream.
Returns:
The input stream for the resource.
Throws:
java.io.IOException - Thrown if the stream could not be opened.