public interface Multicast
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getTargetsInArray()
Access the targets of the proxy in an array.
|
java.lang.Object |
getTargetsInArray(java.lang.Class type)
Access the targets of the proxy in a typed array.
|
java.lang.Object |
multicastTargets(java.lang.Class type,
java.lang.String method,
java.lang.Object[] args)
Multicast a matching method call, that is not available with the types implemented by the proxy.
|
java.lang.Object |
multicastTargets(java.lang.reflect.Method method,
java.lang.Object[] args)
Multicast a direct method call, that is not available with the types implemented by the proxy.
|
java.lang.Object multicastTargets(java.lang.Class type, java.lang.String method, java.lang.Object[] args) throws java.lang.NoSuchMethodException
Use this possibility to operate on objects, that can typically not be proxied e.g. if the class type of the target object is final like it is for a lot of basic classes of java.lang. The result of the call follow the normal rules for multicast invocations.
Note that the implementation of this function must search the best fitting method. It is much more efficient to call the overloaded version of this function with the appropriate method object.
type
- the type that has a method with the given name and matching argumentsmethod
- the method nameargs
- the arguments of the invocationjava.lang.NoSuchMethodException
- if the type has no matching methodjava.lang.SecurityException
- if the security maneger prevents the method access by reflectionjava.lang.Object multicastTargets(java.lang.reflect.Method method, java.lang.Object[] args)
Use this possibility to operate on objects, that can typically not be proxied e.g. if the class type of the target object is final like it is for a lot of basic classes of java.lang. The result of the call follow the normal rules for multicast invocations.
method
- the method to callargs
- the arguments of the invocationjava.lang.Object getTargetsInArray(java.lang.Class type)
type
- the type of an array elementjava.lang.Object[] getTargetsInArray()