org.objectweb.jac.aspects.session
Interface SessionConf

All Known Implementing Classes:
SessionAC

public interface SessionConf

This is the configuration interface of the session aspect.

Author:
Renaud Pawlak
See Also:
SessionAC

Method Summary
 void declareStoredAttributes(String[] attributes)
          Add some attributes to the list of attributes of the context to be saved and restored by the session aspect.
 void definePerSessionObjects(String classExpr, String objectExpr)
          This configuration method defines per-session objects.
 void defineSessionHandlers(String classExpr, String methodExpr, String objectExpr)
          This configuration method tells which methods of which objects must handdle the sessions (wrapped by the session wrapper).
 

Method Detail

defineSessionHandlers

public void defineSessionHandlers(String classExpr,
                                  String methodExpr,
                                  String objectExpr)
This configuration method tells which methods of which objects must handdle the sessions (wrapped by the session wrapper).

Parameters:
classExpr - a class pointcut expression
methodExpr - a method pointcut expression
objectExpr - an object pointcut expression
See Also:
SessionWrapper

definePerSessionObjects

public void definePerSessionObjects(String classExpr,
                                    String objectExpr)
This configuration method defines per-session objects.

A per-session object is an object that have a different state depending on the session. Each user will see a different state for the same object.

Warning: this feature is not compatible with persistent objects!

Parameters:
classExpr - a class pointcut expression
objectExpr - an object pointcut expression
See Also:
SessionWrapper

declareStoredAttributes

public void declareStoredAttributes(String[] attributes)
Add some attributes to the list of attributes of the context to be saved and restored by the session aspect.

Parameters:
attributes - names of attributes