net.sf.crispy.proxy
Class ProxyDecorator

java.lang.Object
  extended bynet.sf.crispy.proxy.Proxy
      extended bynet.sf.crispy.proxy.ProxyDecorator

public class ProxyDecorator
extends Proxy

Decorate the Proxy. It is a Wrapper. Intercept calls on the newInstance-Methode (for internal use).

Author:
Linke

Field Summary
 
Fields inherited from class net.sf.crispy.proxy.Proxy
log
 
Constructor Summary
ProxyDecorator(Proxy pvProxy, InterceptorHandler pvInterceptorHandler)
           
 
Method Summary
 java.util.Properties getProperties()
          Delegate Method to Proxy.
 Proxy getProxy()
          Get the wrapped (decorated) Proxy.
 java.lang.Class getProxyClass()
          Delegate Method to Proxy.
 java.lang.Object getProxyObject()
          Delegate Method to Proxy.
 java.lang.Object newInstance(java.lang.Class pvClass)
          Intercept the Method and delegate Method to Proxy.
 void setProperties(java.util.Properties pvProperties)
          Delegate Method to Proxy.
 void setProxy(Proxy pvProxy)
          Set the wrapped (decorated) Proxy.
 
Methods inherited from class net.sf.crispy.proxy.Proxy
createInvocationStrategy, setProxyClass, setProxyObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyDecorator

public ProxyDecorator(Proxy pvProxy,
                      InterceptorHandler pvInterceptorHandler)
Method Detail

newInstance

public java.lang.Object newInstance(java.lang.Class pvClass)
Intercept the Method and delegate Method to Proxy.

Specified by:
newInstance in class Proxy
See Also:
Proxy.newInstance(java.lang.Class)

getProxy

public Proxy getProxy()
Get the wrapped (decorated) Proxy.

Returns:
the wrapped Proxy

setProxy

public void setProxy(Proxy pvProxy)
Set the wrapped (decorated) Proxy.

Parameters:
pvProxy - The to wrapped Proxy

getProperties

public java.util.Properties getProperties()
Delegate Method to Proxy.

Overrides:
getProperties in class Proxy
See Also:
Proxy.getProperties()

setProperties

public void setProperties(java.util.Properties pvProperties)
Delegate Method to Proxy.

Overrides:
setProperties in class Proxy
See Also:
Proxy.setProperties(Properties)

getProxyClass

public java.lang.Class getProxyClass()
Delegate Method to Proxy.

Overrides:
getProxyClass in class Proxy
See Also:
Proxy.getProxyClass()

getProxyObject

public java.lang.Object getProxyObject()
Delegate Method to Proxy.

Overrides:
getProxyObject in class Proxy
See Also:
Proxy.getProxyObject()


Copyright © 2005-2006 Crispy. All Rights Reserved.