org.apache.hivemind.lib.impl
Class DefaultImplementationBuilderImpl

java.lang.Object
  |
  +--org.apache.hivemind.impl.BaseLocatable
        |
        +--org.apache.hivemind.lib.impl.DefaultImplementationBuilderImpl
All Implemented Interfaces:
DefaultImplementationBuilder, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public class DefaultImplementationBuilderImpl
extends org.apache.hivemind.impl.BaseLocatable
implements DefaultImplementationBuilder

Implemenation of DefaultImplementationBuilder.

Author:
Howard Lewis Ship

Constructor Summary
DefaultImplementationBuilderImpl()
           
 
Method Summary
 java.lang.Object buildDefaultImplementation(java.lang.Class interfaceType, org.apache.hivemind.internal.Module module)
          Builds a default implementation of the indicated interface, instantiates and returns it.
 void setClassFactory(org.apache.hivemind.service.ClassFactory factory)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultImplementationBuilderImpl

public DefaultImplementationBuilderImpl()
Method Detail

buildDefaultImplementation

public java.lang.Object buildDefaultImplementation(java.lang.Class interfaceType,
                                                   org.apache.hivemind.internal.Module module)
Description copied from interface: DefaultImplementationBuilder
Builds a default implementation of the indicated interface, instantiates and returns it. Results are cached for later re-use.

Specified by:
buildDefaultImplementation in interface DefaultImplementationBuilder

setClassFactory

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