org.jboss.weld.injection.spi.helpers
Class SimpleResourceReference<T>

java.lang.Object
  extended by org.jboss.weld.injection.spi.helpers.SimpleResourceReference<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, ResourceReference<T>

public class SimpleResourceReference<T>
extends Object
implements ResourceReference<T>, Serializable

A trivial holder that holds a resource reference and does not handle releasing. The holder is serializable as long as the held instance is serializable.

Author:
Jozef Hartinger
See Also:
Serialized Form

Constructor Summary
SimpleResourceReference(T instance)
           
 
Method Summary
 T getInstance()
          Get the instance of the resource
 void release()
          Release the resource instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResourceReference

public SimpleResourceReference(T instance)
Method Detail

getInstance

public T getInstance()
Description copied from interface: ResourceReference
Get the instance of the resource

Specified by:
getInstance in interface ResourceReference<T>
Returns:
instance

release

public void release()
Description copied from interface: ResourceReference
Release the resource instance

Specified by:
release in interface ResourceReference<T>


Copyright © 2008-2012 Seam Framework. All Rights Reserved.