org.logicblaze.lingo
Class SimpleMetadataStrategy
java.lang.Object
org.logicblaze.lingo.SimpleMetadataStrategy
- All Implemented Interfaces:
- MetadataStrategy, Serializable
- public class SimpleMetadataStrategy
- extends Object
- implements MetadataStrategy
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.
Also any object which implements the Remote
interface or the EventListener
are assumed to be remote and so a remote proxy is used to allow remote notifications and asynchronous
messaging.
- Version:
- $Revision: 1.2 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMetadataStrategy
public SimpleMetadataStrategy()
SimpleMetadataStrategy
public SimpleMetadataStrategy(boolean oneWayForVoidMethods)
getMethodMetadata
public MethodMetadata getMethodMetadata(Method method)
- Description copied from interface:
MetadataStrategy
- Generates the method specific metadata for the given method invocation
- Specified by:
getMethodMetadata
in interface MetadataStrategy
isOneWayForVoidMethods
public boolean isOneWayForVoidMethods()
setOneWayForVoidMethods
public void setOneWayForVoidMethods(boolean oneWayForVoidMethods)
getRemoteTypes
public Set getRemoteTypes()
setRemoteTypes
public void setRemoteTypes(Set remoteTypes)
isRemoteParameter
protected boolean isRemoteParameter(Method method,
Class parameterType,
int index)
populateDefaultRemoteTypes
protected void populateDefaultRemoteTypes(Set remoteTypes)
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.