public class ProxyInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<jadex.commons.MethodInfo> |
excluded
The excluded methods.
|
protected java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> |
replacements
The replacements for methods (method-info -> replacement method).
|
protected java.util.Set<jadex.commons.MethodInfo> |
secure
The secure transport methods.
|
protected java.util.Set<jadex.commons.MethodInfo> |
synchronous
The synchronous methods.
|
protected java.util.List<java.lang.Class<?>> |
targetinterfaces
The target class.
|
protected java.util.Map<jadex.commons.MethodInfo,java.lang.Long> |
timeouts
The timeouts for methods (method-info -> long).
|
protected java.lang.Class<jadex.bridge.ITargetResolver> |
trcl
The target resolver (for intelligent proxies).
|
protected java.util.Set<jadex.commons.MethodInfo> |
uncached
The uncached methods.
|
Constructor and Description |
---|
ProxyInfo()
Create a new proxy info.
|
ProxyInfo(java.lang.Class<?>[] targetinterfaces)
Create a new proxy info.
|
Modifier and Type | Method and Description |
---|---|
void |
addExcludedMethod(jadex.commons.MethodInfo m)
Add an excluded method.
|
void |
addMethodReplacement(jadex.commons.MethodInfo method,
IMethodReplacement replacement)
Add a replacement.
|
void |
addMethodTimeout(jadex.commons.MethodInfo m,
long timeout)
Add a timeout for a method.
|
void |
addSecureMethod(jadex.commons.MethodInfo m)
Add an secure method.
|
void |
addSynchronousMethod(jadex.commons.MethodInfo m)
Add an synchronous method.
|
void |
addTargetInterface(java.lang.Class<?> targetinterface)
Add a target interface.
|
void |
addUncachedMethod(jadex.commons.MethodInfo m)
Add an uncached method.
|
java.util.Set<jadex.commons.MethodInfo> |
getExcludedMethods()
Get the excluded.
|
IMethodReplacement |
getMethodReplacement(java.lang.reflect.Method method)
Get a replacements.
|
java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> |
getMethodReplacements()
Get the replacements
|
long |
getMethodTimeout(jadex.bridge.IComponentIdentifier platform,
java.lang.reflect.Method method)
Get a timeout.
|
java.util.Map<jadex.commons.MethodInfo,java.lang.Long> |
getMethodTimeouts()
Get the timeouts
|
java.util.Set<jadex.commons.MethodInfo> |
getSecureMethods()
Get the secure.
|
java.util.Set<jadex.commons.MethodInfo> |
getSynchronousMethods()
Get the synchronous.
|
java.lang.Class<?>[] |
getTargetInterfaces()
Get the target remote interfaces.
|
java.lang.Class<jadex.bridge.ITargetResolver> |
getTargetResolverClazz()
Get the target determiner clazz.
|
java.util.Set<jadex.commons.MethodInfo> |
getUncachedMethods()
Get the uncached.
|
boolean |
isExcluded(java.lang.reflect.Method m)
Test if method is excluded.
|
boolean |
isReplaced(java.lang.reflect.Method m)
Test if method is replaced.
|
boolean |
isSecure(java.lang.reflect.Method m)
Test if method is secure.
|
boolean |
isSynchronous(java.lang.reflect.Method m)
Test if method is synchronous.
|
boolean |
isUncached(java.lang.reflect.Method m)
Test if method is uncached.
|
void |
setExcludedMethods(java.util.Set<jadex.commons.MethodInfo> excluded)
Set the excluded.
|
void |
setMethodReplacements(java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> replacements)
Set the replacements.
|
void |
setMethodTimeouts(java.util.Map<jadex.commons.MethodInfo,java.lang.Long> timeouts)
Set the timeouts.
|
void |
setSecureMethods(java.util.Set<jadex.commons.MethodInfo> secure)
Set the secure.
|
void |
setSynchronousMethods(java.util.Set<jadex.commons.MethodInfo> synchronous)
Set the synchronous.
|
void |
setTargetInterfaces(java.lang.Class<?>[] targetinterfaces)
Set the target remote interfaces.
|
void |
setTargetResolverClazz(java.lang.Class<jadex.bridge.ITargetResolver> tdcl)
Set the target determiner class.
|
void |
setUncachedMethods(java.util.Set<jadex.commons.MethodInfo> uncached)
Set the uncached.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.util.List<java.lang.Class<?>> targetinterfaces
protected java.util.Set<jadex.commons.MethodInfo> excluded
protected java.util.Set<jadex.commons.MethodInfo> uncached
protected java.util.Set<jadex.commons.MethodInfo> synchronous
protected java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> replacements
protected java.util.Map<jadex.commons.MethodInfo,java.lang.Long> timeouts
protected java.util.Set<jadex.commons.MethodInfo> secure
protected java.lang.Class<jadex.bridge.ITargetResolver> trcl
public ProxyInfo()
public ProxyInfo(java.lang.Class<?>[] targetinterfaces)
public java.util.Map<jadex.commons.MethodInfo,java.lang.Long> getMethodTimeouts()
public void setMethodTimeouts(java.util.Map<jadex.commons.MethodInfo,java.lang.Long> timeouts)
timeouts
- The timeouts.public long getMethodTimeout(jadex.bridge.IComponentIdentifier platform, java.lang.reflect.Method method)
method
- The method.public void addMethodTimeout(jadex.commons.MethodInfo m, long timeout)
m
- The method info.timeout
- The timeout.public java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> getMethodReplacements()
public void setMethodReplacements(java.util.Map<jadex.commons.MethodInfo,IMethodReplacement> replacements)
replacements
- The replacements.public void addMethodReplacement(jadex.commons.MethodInfo method, IMethodReplacement replacement)
public IMethodReplacement getMethodReplacement(java.lang.reflect.Method method)
public boolean isReplaced(java.lang.reflect.Method m)
m
- Method to test.public java.lang.Class<?>[] getTargetInterfaces()
public void setTargetInterfaces(java.lang.Class<?>[] targetinterfaces)
targetinterfaces
- The targetinterfaces to set.public void addTargetInterface(java.lang.Class<?> targetinterface)
targetinterface
- The target interface.public java.util.Set<jadex.commons.MethodInfo> getExcludedMethods()
public void setExcludedMethods(java.util.Set<jadex.commons.MethodInfo> excluded)
excluded
- The excluded to set.public void addExcludedMethod(jadex.commons.MethodInfo m)
Method
- excluded.public boolean isExcluded(java.lang.reflect.Method m)
m
- Method to test.public java.util.Set<jadex.commons.MethodInfo> getUncachedMethods()
public void setUncachedMethods(java.util.Set<jadex.commons.MethodInfo> uncached)
uncached
- The uncached to set.public void addUncachedMethod(jadex.commons.MethodInfo m)
Method
- excluded.public boolean isUncached(java.lang.reflect.Method m)
m
- Method to test.public java.util.Set<jadex.commons.MethodInfo> getSynchronousMethods()
public void setSynchronousMethods(java.util.Set<jadex.commons.MethodInfo> synchronous)
synchronous
- The synchronous to set.public void addSynchronousMethod(jadex.commons.MethodInfo m)
Method
- excluded.public boolean isSynchronous(java.lang.reflect.Method m)
m
- Method to test.public java.util.Set<jadex.commons.MethodInfo> getSecureMethods()
public void setSecureMethods(java.util.Set<jadex.commons.MethodInfo> secure)
secure
- The secure to set.public void addSecureMethod(jadex.commons.MethodInfo m)
m
- Method.public boolean isSecure(java.lang.reflect.Method m)
m
- Method to test.public java.lang.Class<jadex.bridge.ITargetResolver> getTargetResolverClazz()
public void setTargetResolverClazz(java.lang.Class<jadex.bridge.ITargetResolver> tdcl)
tdcl
- The target determiner clazz to setpublic java.lang.String toString()
toString
in class java.lang.Object