org.jboss.soa.esb.lifecycle
Class LifecycleResource<R>

java.lang.Object
  extended by org.jboss.soa.esb.lifecycle.LifecycleResource<R>

public final class LifecycleResource<R>
extends java.lang.Object

This class represents a lifecycle resource.


Constructor Summary
LifecycleResource(LifecycleResourceFactory<R> factory)
          Construct a lifecycle resource using the specified factory.
LifecycleResource(LifecycleResourceFactory<R> factory, int priority)
          Construct a lifecycle resource using the specified factory.
 
Method Summary
 R getLifecycleResource()
          Get the lifecycle resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleResource

public LifecycleResource(LifecycleResourceFactory<R> factory,
                         int priority)
Construct a lifecycle resource using the specified factory.

Parameters:
factory - The lifecycle resource factory.
priority - The relative priority of the resource for cleanup.

LifecycleResource

public LifecycleResource(LifecycleResourceFactory<R> factory)
Construct a lifecycle resource using the specified factory.

Parameters:
factory - The lifecycle resource factory.
Method Detail

getLifecycleResource

public R getLifecycleResource()
                       throws LifecycleResourceException
Get the lifecycle resource.

Returns:
The lifecycle resource.
Throws:
LifecycleResourceException