org.apache.hivemind.lib.chain
Class ChainBuilderImpl

java.lang.Object
  extended by org.apache.hivemind.lib.chain.ChainBuilderImpl
All Implemented Interfaces:
ChainBuilder

public class ChainBuilderImpl
extends java.lang.Object
implements ChainBuilder

Gang of Four Chain of Commands Pattern.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ChainBuilderImpl()
           
 
Method Summary
 java.lang.Object buildImplementation(java.lang.Class commandInterface, java.util.List commands, java.lang.String toString)
          Builds an implementation.
 void setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)
           
 void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainBuilderImpl

public ChainBuilderImpl()
Method Detail

buildImplementation

public java.lang.Object buildImplementation(java.lang.Class commandInterface,
                                            java.util.List commands,
                                            java.lang.String toString)
Description copied from interface: ChainBuilder
Builds an implementation.

Specified by:
buildImplementation in interface ChainBuilder
Parameters:
commandInterface - the interface the implementation implements.
commands - a non-null list of command objects implementing the interface.
toString - The value to be returned from the implementation's toString() method (unless toString() is expressly part of the service interface, in which case it is treated as any other method.

setClassFactory

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

setClassResolver

public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)