Package org.jboss.weld.injection.spi
Interface ResourceReference<T>
- Type Parameters:
T
- the type of the resource
- All Known Implementing Classes:
SimpleResourceReference
public interface ResourceReference<T>
Holds a reference to a resource instance.
- Author:
- Jozef Hartinger, Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionGet the instance of the resourcevoid
release()
Release the resource instance
-
Method Details
-
getInstance
T getInstance()Get the instance of the resource- Returns:
- instance
-
release
void release()Release the resource instance
-