|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicblaze.lingo.SimpleMetadataStrategy
public class SimpleMetadataStrategy
A simple metadata strategy which uses POJO naming conventions.
By default all method invocations are synchronous to avoid surprising users
of Spring Remoting. However if you set the
setOneWayForVoidMethods(boolean)
value to true then all void methods
which do not throw checked exceptions become asynchronous one way methods.
Remote
interface or the
EventListener
are assumed to be remote and so a remote proxy is used
to allow remote notifications and asynchronous messaging.
Constructor Summary | |
---|---|
SimpleMetadataStrategy()
|
|
SimpleMetadataStrategy(boolean oneWayForVoidMethods)
|
Method Summary | |
---|---|
MethodMetadata |
getMethodMetadata(Method method)
Generates the method specific metadata for the given method invocation |
Set |
getRemoteTypes()
|
ResultJoinStrategy |
getResultJoinStrategy()
|
ResultJoinStrategy |
getResultJoinStrategy(org.aopalliance.intercept.MethodInvocation methodInvocation,
MethodMetadata metadata)
Returns the strategy for joining multiple results together when communicating with multiple back end servers over topics. |
protected boolean |
isEndSession(Method method)
Returns true if this method completes a callback object |
boolean |
isOneWayForVoidMethods()
|
protected boolean |
isOneWayMethod(Method method)
|
boolean |
isRemoteParameter(Method method,
Class parameterType,
int index)
|
protected boolean |
isStateful(Method method)
Returns whether or not this object is stateful such that sticky load balancing should be used |
protected void |
populateDefaultRemoteTypes(Set remoteTypes)
|
void |
setOneWayForVoidMethods(boolean oneWayForVoidMethods)
|
void |
setRemoteTypes(Set remoteTypes)
|
void |
setResultJoinStrategy(ResultJoinStrategy joinStrategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMetadataStrategy()
public SimpleMetadataStrategy(boolean oneWayForVoidMethods)
Method Detail |
---|
public MethodMetadata getMethodMetadata(Method method)
MetadataStrategy
getMethodMetadata
in interface MetadataStrategy
public boolean isOneWayForVoidMethods()
public void setOneWayForVoidMethods(boolean oneWayForVoidMethods)
public ResultJoinStrategy getResultJoinStrategy(org.aopalliance.intercept.MethodInvocation methodInvocation, MethodMetadata metadata)
MetadataStrategy
getResultJoinStrategy
in interface MetadataStrategy
public ResultJoinStrategy getResultJoinStrategy()
public void setResultJoinStrategy(ResultJoinStrategy joinStrategy)
public Set getRemoteTypes()
public void setRemoteTypes(Set remoteTypes)
public boolean isRemoteParameter(Method method, Class parameterType, int index)
protected boolean isOneWayMethod(Method method)
protected boolean isEndSession(Method method)
protected boolean isStateful(Method method)
protected void populateDefaultRemoteTypes(Set remoteTypes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |