Constructor and Description |
---|
JavassistProxifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
isProxy(Object o)
Return
true if the object is a proxy, false otherwise. |
boolean |
isProxyType(Class<?> type)
Return
true if the type is a proxy, false otherwise. |
<T> T |
proxify(Class<T> type,
MethodInvocation<? super T> handler)
Creates a proxy for class defined in type parameter.
|
public <T> T proxify(Class<T> type, MethodInvocation<? super T> handler)
Proxifier
public boolean isProxy(Object o)
Proxifier
true
if the object is a proxy, false otherwise. null
objects always return
false
.public boolean isProxyType(Class<?> type)
Proxifier
true
if the type is a proxy, false otherwise.isProxyType
in interface Proxifier
type
- Type to testtrue
if the object is a proxy, false otherwise.Copyright © 2014 Caelum. All rights reserved.