org.apache.myfaces.orchestra.conversation
Class ConversationAspects
java.lang.Object
org.apache.myfaces.orchestra.conversation.ConversationAspects
public class ConversationAspects
- extends java.lang.Object
Maintains a list of aspects the system might attach to a conversation instance.
Aspects are a way of extending the functionality of a class without modifying it;
it acts something like the "decorator" pattern, but with many different decorator
classes being supported at once.
In the simplest form, an Aspect can be attached to a Conversation simply as a "marker"
to indicate whether the conversation should be treated in a certain way or not.
In more sophisticated form, an Aspect can provide an API. Code that wants to
manipulate some "conversation-related" property can query the conversation for the
appropriate Aspect object, then invoke the aspect api to read or write the
Conversation instance via an implementation that is isolated from both the caller
and the Conversation.
Examples of aspects that can be attached to a conversation are:
- Timeout handling
- Access-scope handling
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationAspects
public ConversationAspects()
addAspect
public void addAspect(ConversationAspect aspect)
getAspect
public ConversationAspect getAspect(java.lang.Class aspectClass)
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.