protoj.core.internal
Class InstructionChainArgs

java.lang.Object
  extended by protoj.core.internal.InstructionChainArgs

public final class InstructionChainArgs
extends java.lang.Object

Helper for InstructionChain.InstructionChain(String[]).

As an alternative to using the factory pattern to create an instance of InstructionChain based on a String array, we just add a constructor to InstructionChain that takes a string array. This class is then used as a helper to that constructor so we still get the benefit of encapsulating all the complexity into this class, but we still get to call the constructor as normal.

Author:
Ashley Williams

Constructor Summary
InstructionChainArgs(InstructionChain chain, java.lang.String[] args)
          Create with specified information used to initialize a project chain.
 
Method Summary
 void initChain()
          Initializes the given InstructionChain instance based on the specified command line args argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionChainArgs

public InstructionChainArgs(InstructionChain chain,
                            java.lang.String[] args)
Create with specified information used to initialize a project chain.

Parameters:
chain - the chain being initialized
args - the arguments being parsed to initialize the chain
Method Detail

initChain

public void initChain()
Initializes the given InstructionChain instance based on the specified command line args argument.