T - Type of ExternalResource to produce in this
factory.public interface ResourceFactory<T extends ExternalResource>
T, that can be
connected to a ConnectionInformation.| Modifier and Type | Method and Description |
|---|---|
T |
createResource()
Factory method to create a resource.
|
int |
getInstances()
Retrieves the number of instances, that this factory
will create using
createResource(). |
java.lang.Class<T> |
getResourceType()
Returns the class type of the resource to create.
|
java.lang.String |
getType()
Retrieves the type of the resources that are created by this
factory.
|
java.lang.Class<T> getResourceType()
T createResource() throws NoresourceError
NoresourceError - error creating the requested resource.int getInstances()
createResource().java.lang.String getType()