org.jboss.soa.esb.lifecycle
Interface LifecycleResourceFactory<R>


public interface LifecycleResourceFactory<R>

Interface representing a lifecycle resource factory.


Method Summary
 R createLifecycleResource(java.lang.String lifecycleIdentity)
          Create a resource object which will be associated with the specified lifecycle identity.
 void destroyLifecycleResource(R resource, java.lang.String lifecycleIdentity)
          Destroy a resource object which is associated with the specified lifecycle identity.
 

Method Detail

createLifecycleResource

R createLifecycleResource(java.lang.String lifecycleIdentity)
                          throws LifecycleResourceException
Create a resource object which will be associated with the specified lifecycle identity.

Parameters:
lifecycleIdentity - The associated lifecycle identity.
Returns:
The lifecycle resource
Throws:
LifecycleResourceException - for errors during construction.

destroyLifecycleResource

void destroyLifecycleResource(R resource,
                              java.lang.String lifecycleIdentity)
                              throws LifecycleResourceException
Destroy a resource object which is associated with the specified lifecycle identity.

Parameters:
resource - The lifecycle resource.
lifecycleIdentity - The associated lifecycle identity.
Throws:
LifecycleResourceException - for errors during destroy.