|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectResourceContextImpl
public class ResourceContextImpl
The ResourceContextImpl class provides an implementation of the ResourceContext service, as well as a simple singleton provider that can be used to obtain new instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ResourceContext |
---|
ResourceContext.ResourceEvents |
Constructor Summary | |
---|---|
ResourceContextImpl(ControlContainerContext containerContext,
ControlBean bean)
Constructs a new ResourceContext service implementation to manage resources for a target ControlBean within a specific ControlContainerContext |
Method Summary | |
---|---|
void |
acquire()
The acquire method allows a Control implementation to manually request acquisition. |
void |
addResourceEventsListener(ResourceContext.ResourceEvents resourceListener)
Registers a listener that implements the ResourceEvents interface for the ResourceContext. |
boolean |
hasResources()
The hasResources method returns true if the control has currently acquired resources, false otherwise. |
void |
postInvoke(Object retval,
Throwable t)
Implements the InvokeListener.postInvoke method. |
void |
preInvoke(Method m,
Object[] args)
Implements the InvokeListener.preInvoke method. |
void |
release()
The release method allows a Control implement to manually release resources immediately, instead of waiting until the end of the current resource scope. |
void |
removeResourceEventsListener(ResourceContext.ResourceEvents resourceListener)
Unregisters a listener that implements the ResourceEvents interface for the ResourceContext. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceContextImpl(ControlContainerContext containerContext, ControlBean bean)
Method Detail |
---|
public void preInvoke(Method m, Object[] args)
preInvoke
in interface InvokeListener
public void postInvoke(Object retval, Throwable t)
postInvoke
in interface InvokeListener
public void acquire()
ResourceContext
acquire
in interface ResourceContext
public void release()
ResourceContext
release
in interface ResourceContext
public boolean hasResources()
ResourceContext
hasResources
in interface ResourceContext
public void addResourceEventsListener(ResourceContext.ResourceEvents resourceListener)
ResourceContext
addResourceEventsListener
in interface ResourceContext
public void removeResourceEventsListener(ResourceContext.ResourceEvents resourceListener)
ResourceContext
removeResourceEventsListener
in interface ResourceContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |