org.norther.tammi.spray.engine.chain
Class RequestBoundObjectName

java.lang.Object
  extended by org.norther.tammi.spray.engine.chain.RequestBoundObjectName
All Implemented Interfaces:
Serializable, EventListener, ServletRequestBindingListener

public class RequestBoundObjectName
extends Object
implements ServletRequestBindingListener, Serializable

An object name bound to a request. When it is unbound from the request, the corresponding MBean is unregistered from the MBean server.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
RequestBoundObjectName(ObjectName name)
          Constructs a new bound object name.
 
Method Summary
 void release()
          Releases the bound object name without unregistering the corresponding MBean.
 void valueBound(ServletRequestBindingEvent event)
          Notifies the object that it is being bound to a request.
 void valueUnbound(ServletRequestBindingEvent event)
          Notifies the object that it is being unbound from a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestBoundObjectName

public RequestBoundObjectName(ObjectName name)
Constructs a new bound object name.

Parameters:
name - the object name to bind to the session.
Method Detail

release

public void release()
Releases the bound object name without unregistering the corresponding MBean.


valueBound

public void valueBound(ServletRequestBindingEvent event)
Description copied from interface: ServletRequestBindingListener
Notifies the object that it is being bound to a request.

Specified by:
valueBound in interface ServletRequestBindingListener
Parameters:
event - the binding event.

valueUnbound

public void valueUnbound(ServletRequestBindingEvent event)
Description copied from interface: ServletRequestBindingListener
Notifies the object that it is being unbound from a request.

Specified by:
valueUnbound in interface ServletRequestBindingListener
Parameters:
event - the binding event.


Copyright © 2004 The Norther Organization. All rights reserved.