org.apache.hivemind.impl
Class ProxyBuilder
java.lang.Object
org.apache.hivemind.impl.ProxyBuilder
public final class ProxyBuilder
- extends java.lang.Object
Class used to assist extension points in creating proxies.
- Author:
- Howard Lewis Ship
Constructor Summary |
ProxyBuilder(java.lang.String type,
Module module,
java.lang.Class serviceInterface,
java.lang.Class declaredInterface,
boolean outerProxy)
Constructs a new builder. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyBuilder
public ProxyBuilder(java.lang.String type,
Module module,
java.lang.Class serviceInterface,
java.lang.Class declaredInterface,
boolean outerProxy)
- Constructs a new builder. The type will be incorporated into value returned by the
toString()
method.
The generated proxy has an constructor that expects the extension point id as single parameter.
- Parameters:
type
- used as part of the toString()
method's return valuemodule
- the module that constructs the proxyserviceInterface
- the interface of the proxied class.declaredInterface
- the interface of the proxied class or the class itself if the proxied class is actually a POJO.outerProxy
- if false, then the proxy can extend the configuration points service interface always.
If true and the declared interface is actually a bean class (not
an interface), then the proxy will be a subclass of that bean.
getClassFab
public ClassFab getClassFab()
addServiceMethods
public void addServiceMethods(java.lang.String indirection)
- See Also:
addServiceMethods(String, boolean)
addServiceMethods
public void addServiceMethods(java.lang.String indirection,
boolean addToString)
- Creates the service methods for the class.
- Parameters:
indirection
- the name of a variable, or a method invocation snippet, used to redirect the
invocation on the proxy to the actual service implementation.addToString
- if true, a implementation of the toString method is generated that
returns some info about the proxy
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.