net.sf.crispy.proxy
Class StaticProxyDecorator

java.lang.Object
  extended bynet.sf.crispy.proxy.Proxy
      extended bynet.sf.crispy.proxy.StaticProxy
          extended bynet.sf.crispy.proxy.StaticProxyDecorator

public class StaticProxyDecorator
extends StaticProxy

Decorate all StaticProxy-implementations.

Author:
Linke

Field Summary
 
Fields inherited from class net.sf.crispy.proxy.StaticProxy
PROPERTY_CURRENT_INTERFACE_CLASS
 
Fields inherited from class net.sf.crispy.proxy.Proxy
log
 
Constructor Summary
StaticProxyDecorator(StaticProxy pvStaticProxy)
           
 
Method Summary
 InvocationStrategy getDefaultInvocationStrategy(java.util.Properties pvProperties)
          Get default InvocationStrategy, if no InvocationStrategy is set in the properties.
 java.lang.String getDefaultUrlAndPort()
          Get default url and port.
 java.util.Properties getProperties()
          Delegate Method to StaticProxy.
 java.lang.Class getProxyClass()
          Delegate Method to StaticProxy.
 java.lang.Object getProxyObject()
          Delegate Method to StaticProxy.
 StaticProxy getStaticProxy()
           
 java.lang.Object newInstance(java.lang.Class pvClass)
          Delegate Method to StaticProxy.
 void setProperties(java.util.Properties pvProperties)
          Delegate Method to StaticProxy.
 void setStaticProxy(StaticProxy pvStaticProxy)
           
 
Methods inherited from class net.sf.crispy.proxy.StaticProxy
getInvocationStrategy, getUrlAndPort, setInvocationStrategy
 
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

StaticProxyDecorator

public StaticProxyDecorator(StaticProxy pvStaticProxy)
Method Detail

newInstance

public java.lang.Object newInstance(java.lang.Class pvClass)
Delegate Method to StaticProxy.

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

setStaticProxy

public final void setStaticProxy(StaticProxy pvStaticProxy)

getStaticProxy

public StaticProxy getStaticProxy()

getProperties

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

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

setProperties

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

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

getProxyClass

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

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

getProxyObject

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

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

getDefaultUrlAndPort

public java.lang.String getDefaultUrlAndPort()
Get default url and port. If no url and port is in properties.

Specified by:
getDefaultUrlAndPort in class StaticProxy
Returns:
Default url and port.

getDefaultInvocationStrategy

public InvocationStrategy getDefaultInvocationStrategy(java.util.Properties pvProperties)
Description copied from class: StaticProxy
Get default InvocationStrategy, if no InvocationStrategy is set in the properties.

Overrides:
getDefaultInvocationStrategy in class StaticProxy
Returns:
Default InvocationStrategy or null.


Copyright © 2005-2006 Crispy. All Rights Reserved.