|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.rees.scope.conversation.configuration.DefaultConversationArbitrator
public class DefaultConversationArbitrator
The default implementation of ConversationArbitrator
| Field Summary | |
|---|---|
protected String |
actionSuffix
|
| Constructor Summary | |
|---|---|
DefaultConversationArbitrator()
|
|
| Method Summary | |
|---|---|
Collection<String> |
getBeginConversations(Class<?> clazz,
Method method)
returns a collection of conversation names for the method as a begin point |
Collection<Field> |
getCandidateConversationFields(Class<?> clazz)
Returns a collection of candidate conversation fields from a class. |
Collection<Method> |
getCandidateConversationMethods(Class<?> clazz)
Returns a collection of candidate conversation action methods from a class. |
protected Set<Class<?>> |
getConversationControllers(Class<?> clazz)
|
Collection<String> |
getConversations(Class<?> clazz)
|
Collection<String> |
getConversations(Class<?> clazz,
Field field)
Returns a collection of conversation names for the field |
Collection<String> |
getConversations(Class<?> clazz,
Method method)
returns a collection of conversation names for the method as an intermediate point |
Collection<String> |
getConversations(Class<?> clazz,
Method method,
String actionSuffix)
|
Collection<String> |
getConversations(Class<?> clazz,
String actionSuffix)
|
protected String[] |
getConversationsWithInheritance(Class<?> clazz,
String actionSuffix)
|
protected String[] |
getConversationsWithoutInheritance(Class<?> clazz,
String actionSuffix)
|
Collection<String> |
getEndConversations(Class<?> clazz,
Method method)
returns a collection of conversation names for the method as an end point |
String |
getName(Field field)
returns the name to be used for the field as a key in the conversation context |
String |
getName(Method method)
returns the name to be used as an actionId |
protected boolean |
isAction(Method method)
|
protected boolean |
isConversationController(Class<?> clazz)
|
void |
setActionSuffix(String suffix)
The default suffix is "Controller". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String actionSuffix
| Constructor Detail |
|---|
public DefaultConversationArbitrator()
| Method Detail |
|---|
public void setActionSuffix(String suffix)
MyExampleFlowController would be
my-example-flow. Use this setter to use a different suffix.
setActionSuffix in interface ConversationArbitratorpublic Collection<Field> getCandidateConversationFields(Class<?> clazz)
ConversationArbitrator.getConversations(Class, Field) to
determine
which, if any, conversations the field should be included with
getCandidateConversationFields in interface ConversationArbitratorpublic Collection<Method> getCandidateConversationMethods(Class<?> clazz)
ConversationArbitrator.getConversations(Class, Method) to
determine
which, if any, conversations the method should be included with
getCandidateConversationMethods in interface ConversationArbitrator
public Collection<String> getConversations(Class<?> clazz,
Field field)
getConversations in interface ConversationArbitrator
public Collection<String> getConversations(Class<?> clazz,
Method method)
getConversations in interface ConversationArbitratorcom.google.code.rees.scope.conversation.annotations.ConversationAction
ConversationAction}public String getName(Field field)
getName in interface ConversationArbitratorpublic String getName(Method method)
getName in interface ConversationArbitratorConversationAdapter#getActionId()}
public Collection<String> getBeginConversations(Class<?> clazz,
Method method)
getBeginConversations in interface ConversationArbitratorcom.google.code.rees.scope.conversation.annotations.BeginConversation
BeginConversation}
public Collection<String> getEndConversations(Class<?> clazz,
Method method)
getEndConversations in interface ConversationArbitratorcom.google.code.rees.scope.conversation.annotations.EndConversation
EndConversation}public Collection<String> getConversations(Class<?> clazz)
public Collection<String> getConversations(Class<?> clazz,
String actionSuffix)
public Collection<String> getConversations(Class<?> clazz,
Method method,
String actionSuffix)
protected String[] getConversationsWithInheritance(Class<?> clazz,
String actionSuffix)
protected String[] getConversationsWithoutInheritance(Class<?> clazz,
String actionSuffix)
protected Set<Class<?>> getConversationControllers(Class<?> clazz)
protected boolean isAction(Method method)
protected boolean isConversationController(Class<?> clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||