com.endeca.infront.assembler
Class AbstractCartridgeHandler

java.lang.Object
  extended by com.endeca.infront.assembler.AbstractCartridgeHandler
All Implemented Interfaces:
CartridgeHandler<ContentItem>
Direct Known Subclasses:
ContentIncludeHandler, ContentSlotHandler, StatsPageCartridgeHandler

public abstract class AbstractCartridgeHandler
extends Object
implements CartridgeHandler<ContentItem>

An abstract implementation of CartridgeHandler that provides no-op implementations of CartridgeHandler.initialize(ContentItem) and CartridgeHandler.preprocess(ContentItem).


Constructor Summary
AbstractCartridgeHandler()
           
 
Method Summary
 ContentItem initialize(ContentItem pContentItem)
          This implementation simply returns the input ContentItem without modification.
 void preprocess(ContentItem pContentItem)
          This implementation does nothing and does not modify the input ContentItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.endeca.infront.assembler.CartridgeHandler
process
 

Constructor Detail

AbstractCartridgeHandler

public AbstractCartridgeHandler()
Method Detail

initialize

public ContentItem initialize(ContentItem pContentItem)
                       throws CartridgeHandlerException
This implementation simply returns the input ContentItem without modification.

Specified by:
initialize in interface CartridgeHandler<ContentItem>
Parameters:
pContentItem - cartridge instance configuration, typically from Experience Manager.
Returns:
the input ContentItem without modification.
Throws:
CartridgeHandlerException - exceptions are never thrown by this no-op implementation

preprocess

public void preprocess(ContentItem pContentItem)
                throws CartridgeHandlerException
This implementation does nothing and does not modify the input ContentItem.

Specified by:
preprocess in interface CartridgeHandler<ContentItem>
Parameters:
pContentItem - the cartridge configuration returned by initialize(ContentItem).
Throws:
CartridgeHandlerException - exceptions are never thrown by this no-op implementation


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.