public final class Delegator extends Object implements InvocationHandler
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method m,
Object[] args) |
static Object |
newInstance(Class<?>[] interfaces,
Object[] implementations) |
public static Object newInstance(Class<?>[] interfaces, Object[] implementations)
NullPointerException
- if interfaces
or
implementatations
is null
,
or interfaces[i]
or implementations[i]
is null
for some 0 < i < size
where size
is the size of the corresponding
array.IllegalArgumentException
- if the length of the two
given arrays interfaces
and
implementations
is not equal, there is the
same method name defined in two or more interfaces, or
implementations[i]
does not implement
interfaces[i]
.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.