atg.endeca.assembler
Class NucleusAssembler

java.lang.Object
  extended by AbstractAssembler
      extended by atg.endeca.assembler.NucleusAssembler

public class NucleusAssembler
extends AbstractAssembler

The NucleusAssembler extension of AbstractAssembler is responsible for returning a cartridge handler for a particular cartridge type. NucleusAssemblerFactory has the configuration for the mapping between the cartridge handler type and the cartridge component path.

To turn on debug logging, use NucleusAssemblerFactory.loggingDebug.

See Also:
NucleusAssemblerFactory

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
NucleusAssembler(NucleusAssemblerFactory pNucleusAssemblerFactory)
          Construct a new NucleusAssembler
 
Method Summary
protected   getCartridgeHandler(java.lang.String pCartridgeType)
          Resolves the cartridge handler for the pCartridgeType.
 NucleusAssemblerFactory getNucleusAssemblerFactory()
           
protected  CartridgeHandler resolveHandler(java.lang.String pHandlerPath)
           
 void setNucleusAssemblerFactory(NucleusAssemblerFactory pNucleusAssemblerFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

NucleusAssembler

public NucleusAssembler(NucleusAssemblerFactory pNucleusAssemblerFactory)
Construct a new NucleusAssembler

Method Detail

getNucleusAssemblerFactory

public NucleusAssemblerFactory getNucleusAssemblerFactory()
Returns:
NucleusAssemblerFactory bean containing configuration and useful methods for use with the assembler.

setNucleusAssemblerFactory

public void setNucleusAssemblerFactory(NucleusAssemblerFactory pNucleusAssemblerFactory)
Parameters:
mNucleusAssemblerFactory - Set a new NucleusAssemblerFactory

getCartridgeHandler

protected  getCartridgeHandler(java.lang.String pCartridgeType)
                             throws CartridgeHandlerException
Resolves the cartridge handler for the pCartridgeType. The first place checked is any explicit mapping in handlerMapping. If no entry is found in handlerMapping, we check the directory specific to the install. This will be the config path specified by experienceManagerHandlerPath or guidedSearchHandlerPath. If no handler is found there, we check the default handler directory defaultHandlerPath.

Throws:
CartridgeHandlerException

resolveHandler

protected CartridgeHandler resolveHandler(java.lang.String pHandlerPath)
Returns:
The CartridgeHandler at the path specified by pHandlerPath. Try to resolve this in the request, if no request exists try and resolve it globally.