org.apache.beehive.controls.api.context
Interface ResourceContext.ResourceEvents

Enclosing interface:
ResourceContext

public static interface ResourceContext.ResourceEvents

The ResourceEvents interface defines the resource events delivered by a ResourceContext provider.


Method Summary
 void onAcquire()
          The onAcquire event will be delivered by a ResourceContext provider to the Control implementation before any operation on the control is invoked within the resource scope associated with the provider and its associated container.
 void onRelease()
          The onRelease event will be delivered by a ResourceContext provider to the Control implementation immediately before before the end of the resource scope associated with the provider and its associated container.
 

Method Detail

onAcquire

void onAcquire()
The onAcquire event will be delivered by a ResourceContext provider to the Control implementation before any operation on the control is invoked within the resource scope associated with the provider and its associated container. This provides the opportunity for the implementation instance to obtain any resource it uses to provide its services.


onRelease

void onRelease()
The onRelease event will be delivered by a ResourceContext provider to the Control implementation immediately before before the end of the resource scope associated with the provider and its associated container. This provides the opportunity for the implementation instance to relinquish any resources it obtained during onAcquire event handling.