com.ibm.wsspi.resource
Interface ResourceFactory
- public interface ResourceFactory
CREATES_OBJECT_CLASS
and "osgi.jndi.service.name" properties.
Field Summary
Modifier and Type | Field and Description |
---|---|
|
CREATES_OBJECT_CLASS
The service registry property that specifies the String class (or
String[] classes) that the factory supports creating.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createResource(ResourceInfo info)
Creates a resource handle of the specified type that respects the
specified resource information.
|
Field Detail
CREATES_OBJECT_CLASS
- static final java.lang.String CREATES_OBJECT_CLASS
The service registry property that specifies the String class (or
String[] classes) that the factory supports creating.
See Also:
Method Detail
createResource
- java.lang.Object createResource( ResourceInfo info)
- throws java.lang.Exception
Creates a resource handle of the specified type that respects the
specified resource information. The
ResourceInfo.getType()
must
match the CREATES_OBJECT_CLASS
property.
Parameters:
info
- the non-null resource information Returns:
the resource handle
Throws:
java.lang.Exception
- a resource-specific exception See Also: