|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.AspectComponent | +--org.objectweb.jac.aspects.session.SessionAC
This aspect component handle the session aspect within JAC applications.
The session aspects memorizes some contextual informations as users id or password and link them to the current session id (the "Session.sid" attribute in the context). If the client correctly sets this attribute for each interaction, then the session aspect restores the saved information so that the user will not have to input extra information (such as his password) for each interaction.
SessionWrapper
,
Serialized FormField Summary | |
static String |
INITIALIZED
|
static String |
SESSION_ID
|
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener |
FOUND_OBJECT |
Constructor Summary | |
SessionAC()
|
Method Summary | |
void |
clearCurrentSessionAttribute(String name)
|
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). |
String[] |
getDefaultConfigs()
Returns defaults configuration files that must be loaded before the user's configuration |
String[] |
getStoredAttributes()
Stored attributes accessor. |
protected SessionWrapper |
getWrapper()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SESSION_ID
public static final String INITIALIZED
Constructor Detail |
public SessionAC()
Method Detail |
public String[] getDefaultConfigs()
AspectComponent
getDefaultConfigs
in class AspectComponent
public void clearCurrentSessionAttribute(String name)
protected SessionWrapper getWrapper()
public void defineSessionHandlers(String classExpr, String methodExpr, String objectExpr)
SessionConf
defineSessionHandlers
in interface SessionConf
classExpr
- a class pointcut expressionmethodExpr
- a method pointcut expressionobjectExpr
- an object pointcut expressionSessionWrapper
public void definePerSessionObjects(String classExpr, String objectExpr)
SessionConf
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!
definePerSessionObjects
in interface SessionConf
classExpr
- a class pointcut expressionobjectExpr
- an object pointcut expressionSessionWrapper
public void declareStoredAttributes(String[] attributes)
SessionConf
declareStoredAttributes
in interface SessionConf
attributes
- names of attributespublic String[] getStoredAttributes()
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |