org.apache.hivemind.lib.impl
Class ServicePropertyFactory

java.lang.Object
  |
  +--org.apache.hivemind.lib.impl.ServicePropertyFactory
All Implemented Interfaces:
org.apache.hivemind.ServiceImplementationFactory

public class ServicePropertyFactory
extends java.lang.Object
implements org.apache.hivemind.ServiceImplementationFactory

Factory that dynamically exposes a property of another service. A proxy is constructed that accesses the target service and obtains a property from that. The service interface of the constructed service must match the type of the exposed property.

Author:
Howard Lewis Ship

Constructor Summary
ServicePropertyFactory()
           
 
Method Summary
 java.lang.Object createCoreServiceImplementation(java.lang.String serviceId, java.lang.Class serviceInterface, org.apache.commons.logging.Log serviceLog, org.apache.hivemind.internal.Module invokingModule, java.util.List parameters)
           
 void setClassFactory(org.apache.hivemind.service.ClassFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePropertyFactory

public ServicePropertyFactory()
Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(java.lang.String serviceId,
                                                        java.lang.Class serviceInterface,
                                                        org.apache.commons.logging.Log serviceLog,
                                                        org.apache.hivemind.internal.Module invokingModule,
                                                        java.util.List parameters)
Specified by:
createCoreServiceImplementation in interface org.apache.hivemind.ServiceImplementationFactory

setClassFactory

public void setClassFactory(org.apache.hivemind.service.ClassFactory factory)