com.sas.servlet.util
Class BoundRocf

com.sas.servlet.util.BoundRocf
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

public class BoundRocf
implements javax.servlet.http.HttpSessionBindingListener

Holder for Rocf objects that are bound into the HTTP session. When the bound object is unbound the class factory will be stopped Use the Util class to find an existing Rocf object factory that is bound to the HTTP session, or to create a new Rocf

See Also:
Util, BoundConnection

Constructor Summary
BoundRocf(com.sas.rmi.Rocf rocf)
          Create a new BoundRocf object
 
Method Summary
 com.sas.rmi.Rocf getRocf()
          Returns the class factory
 void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
          Called when this object is bound into a session.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
          Called when this object is unbound from a session.
 

Constructor Detail

BoundRocf

public BoundRocf(com.sas.rmi.Rocf rocf)
Create a new BoundRocf object

Parameters:
rocf - The class factory
Method Detail

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Called when this object is bound into a session.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
event - The event

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Called when this object is unbound from a session. The class factory will be properly closed.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
event - The event

getRocf

public com.sas.rmi.Rocf getRocf()
Returns the class factory

Returns:
The class factory



Copyright © 2009 SAS Institute Inc. All Rights Reserved.