|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Multicast
Interface that is implemented by all multicasting proxies. Cast the proxy to access the proxied elements again or to call a method on them independent of the type of the proxy.
Method Summary | |
---|---|
Object[] |
getTargetsInArray()
Access the targets of the proxy in an array. |
Object |
getTargetsInArray(Class type)
Access the targets of the proxy in a typed array. |
Object |
multicastTargets(Class type,
String method,
Object[] args)
Multicast a matching method call, that is not available with the types implemented by the proxy. |
Object |
multicastTargets(Method method,
Object[] args)
Multicast a direct method call, that is not available with the types implemented by the proxy. |
Method Detail |
---|
Object multicastTargets(Class type, String method, Object[] args) throws 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 invocation
NoSuchMethodException
- if the type has no matching method
SecurityException
- if the security maneger prevents the method access by reflectionObject multicastTargets(Method method, 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 invocation
Object getTargetsInArray(Class type)
type
- the type of an array element
Object[] getTargetsInArray()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |