com.google.code.rees.scope.conversation.annotations
Annotation Type ConversationField


@Target(value=FIELD)
@Retention(value=RUNTIME)
@Documented
public @interface ConversationField

Denotes a field as a conversation-scoped field. Depends on an InjectionConversationProcessor being used to manage conversations.

Author:
rees.byars
See Also:
name(), conversations()

Optional Element Summary
 String[] conversations
          The conversations for which this field will be a member.
 String name
          The name of the field.
 

name

public abstract String name
The name of the field. If left blank, then the name of the field defaults to the name by which it is called in the code. For instance, for:

@ConversationField String someString;

the name would default to "someString". As well, the following will be treated as the same conversation field:

@ConversationField String someString;
@ConversationField(name="someString") String dumbString;

because they have the same conversation field name.

Default:
"default"

conversations

public abstract String[] conversations
The conversations for which this field will be a member.

In an action class annotated with the ConversationController annotation, the conversations() field will default to that of the controller's conversations if left blank. If not in a ConversationController, then the conversations field must be specified in order to associate this field.

Default:
{}


Copyright © 2012-2013. All Rights Reserved.