Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
java
java
titleIntercepted EditableConversation
class InterceptedConversationImpl implements EditableConversation
{
    private static final long serialVersionUID = 283349344155364553L;

    private final EditableConversation wrapped;

    public InterceptedConversationImpl(EditableConversation wrapped)
    {
        this.wrapped = wrapped;
    }

    //delegate methods to this.wrapped and intercept the need methods or change the behaviour completely
}
Code Block
xml
xml
titleConfiguration in the std. CDI beans.xml

<beans>
    <decorators>
        <class>mypackage.CustomConversationFactory</class>
    </decorators>
</beans>