|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.cartridge.ConfigInitializer
public class ConfigInitializer
Helper class for implementing
CartridgeHandler.initialize(ContentItem)
.
RequestParamMarshaller
Constructor Summary | |
---|---|
ConfigInitializer()
|
Method Summary | |
---|---|
protected static void |
addDefaults(ContentItem contentItem,
ContentItem defaults)
Helper method for adding defaults "below" the values present in a given ContentItem. |
ContentItem |
initialize(ContentItem instanceConfig)
Subclasses can extend this method to add layers or re-order layers. |
void |
setDefaults(ContentItem defaults)
Set the default configuration for a given CartridgeHandler. |
void |
setRequestParamMarshaller(RequestParamMarshaller marshaller)
Set the RequestParamMarshaller that can create request-based configuration for a given CartridgeHandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigInitializer()
Method Detail |
---|
public void setDefaults(ContentItem defaults)
defaults
- may be nullpublic void setRequestParamMarshaller(RequestParamMarshaller marshaller)
marshaller
- may be nullpublic ContentItem initialize(ContentItem instanceConfig)
initialize
in interface ContentItemInitializer
instanceConfig
- cartridge instance configuration, typically from Experience Manager.
protected static void addDefaults(ContentItem contentItem, ContentItem defaults)
contentItem
- the ContentItem to mutate by the addition of defaultsdefaults
- the default ContentItem instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |