org.apache.hivemind.lib.chain
Class ChainBuilderImpl
java.lang.Object
   org.apache.hivemind.lib.chain.ChainBuilderImpl
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
 
| 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 | 
 
ChainBuilderImpl
public ChainBuilderImpl()
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:
- buildImplementationin 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)
- 
 
- 
 
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.