org.apache.hivemind.impl
Class ProxyBuilder

java.lang.Object
  extended by org.apache.hivemind.impl.ProxyBuilder

public final class ProxyBuilder
extends java.lang.Object

Class used to assist service extension points in creating proxies.

Author:
Howard Lewis Ship

Constructor Summary
ProxyBuilder(java.lang.String type, ServicePoint point)
           
ProxyBuilder(java.lang.String type, ServicePoint point, boolean outerProxy)
          Constructs a new builder.
 
Method Summary
 void addServiceMethods(java.lang.String indirection)
          Creates the service methods for the class.
 ClassFab getClassFab()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyBuilder

public ProxyBuilder(java.lang.String type,
                    ServicePoint point)

ProxyBuilder

public ProxyBuilder(java.lang.String type,
                    ServicePoint point,
                    boolean outerProxy)
Constructs a new builder. The type will be incorporated into value returned by the toString() method. The service extension point is used to identify the service interface and service id.

Parameters:
type - used as part of the toString() method's return value
point - the service point for which this proxy is being constructed
outerProxy - if false, then the proxy can extend the service points service interface always. If true and the service point's declared interface is actually a bean class (not an interface), then the proxy will be a subclass of that bean.
Method Detail

getClassFab

public ClassFab getClassFab()

addServiceMethods

public void addServiceMethods(java.lang.String indirection)
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.