org.apache.hivemind.lib
Interface DefaultImplementationBuilder

All Known Implementing Classes:
DefaultImplementationBuilderImpl

public interface DefaultImplementationBuilder

Builds a default implementation of an interface. The fabricated class has no-op implementions for each method in the interface. Non-void methods return null, false or zero. A cached, shared instance of the empty implementation is kept and will be returned on future invocations.

Author:
Howard Lewis Ship

Method Summary
 java.lang.Object buildDefaultImplementation(java.lang.Class interfaceType)
          Builds a default implementation of the indicated interface, instantiates and returns it.
 

Method Detail

buildDefaultImplementation

java.lang.Object buildDefaultImplementation(java.lang.Class interfaceType)
Builds a default implementation of the indicated interface, instantiates and returns it. Results are cached for later re-use.

Throws:
org.apache.hivemind.ApplicationRuntimeException - if interfaceType is not an interface.