org.chromattic.spi.instrument
Interface ProxyType<O>


public interface ProxyType<O>

The proxy type.

Version:
$Revision$
Author:
Julien Viet

Method Summary
 O createProxy(MethodHandler handler)
          Create a proxy instance that delegates all method invocations to the provided handler
 MethodHandler getInvoker(java.lang.Object proxy)
          Returns the method handler for the specified proxy or null if the object argument is not instrumented.
 java.lang.Class<? extends O> getType()
          Returns the proxied type.
 

Method Detail

createProxy

O createProxy(MethodHandler handler)
Create a proxy instance that delegates all method invocations to the provided handler

Parameters:
handler - the handler
Returns:
a proxy instance

getInvoker

MethodHandler getInvoker(java.lang.Object proxy)
Returns the method handler for the specified proxy or null if the object argument is not instrumented.

Parameters:
proxy - the instrumented proxy
Returns:
the method handler

getType

java.lang.Class<? extends O> getType()
Returns the proxied type.

Returns:
the proxied type


Copyright © 2014 eXo Platform SAS. All Rights Reserved.