Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.myfaces.orchestra.conversation
Class ConversationAspects

    java.lang.Object
      org.apache.myfaces.orchestra.conversation.ConversationAspects

    public class ConversationAspects

extends 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

Constructor Summary
`ConversationAspects()`

Method Summary
`void` | `addAspect(ConversationAspect aspect)`
`ConversationAspect` | `getAspect(Class aspectClass)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ConversationAspects

    public ConversationAspects()

Method Detail

### addAspect

    public void addAspect(ConversationAspect aspect)

### getAspect

    public ConversationAspect getAspect(Class aspectClass)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 The Apache Software Foundation. All Rights Reserved.