|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sitemesh.builder.BaseSiteMeshBuilder<BUILDER,CONTEXT,RESULT>
BUILDER - The type to return from the builder methods. Subclasses
should type this as their own class type.CONTEXT - The type of SiteMesh context used.RESULT - The resulting type built by the builder.public abstract class BaseSiteMeshBuilder<BUILDER extends BaseSiteMeshBuilder,CONTEXT extends SiteMeshContext,RESULT>
Common functionality for BaseSiteMeshFilterBuilder and
BaseSiteMeshOfflineBuilder.
BaseSiteMeshFilterBuilder,
BaseSiteMeshOfflineBuilder| Constructor Summary | |
|---|---|
protected |
BaseSiteMeshBuilder()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseSiteMeshBuilder()
| Method Detail |
|---|
public abstract RESULT create()
throws IllegalStateException
IllegalStateExceptionprotected void setupDefaults()
TagBasedContentProcessor with
CoreHtmlTagRuleBundle
and DecoratorTagRuleBundle
(the typical setup).
protected BUILDER self()
public BUILDER addTagRuleBundle(TagRuleBundle bundle)
TagRuleBundle to the
TagBasedContentProcessor.
This will always append to the existing list of TagRuleBundles, created in
setupDefaults(). To remove these defaults, use clearTagRuleBundles()
or setTagRuleBundles(TagRuleBundle[]).
Note: If setCustomContentProcessor(ContentProcessor) is called,
any TagRuleBundles are ignored, as they are only used by the default ContentProcessor
implementation.
public BUILDER addTagRuleBundles(TagRuleBundle... bundles)
addTagRuleBundle(org.sitemesh.content.tagrules.TagRuleBundle)
multiple times.
This will always append to the existing list of TagRuleBundles, created in
setupDefaults(). To remove these defaults, use clearTagRuleBundles()
or setTagRuleBundles(TagRuleBundle[]).
Note: If setCustomContentProcessor(ContentProcessor) is called,
any TagRuleBundles are ignored, as they are only used by the default ContentProcessor
implementation.
public BUILDER addTagRuleBundles(Iterable<TagRuleBundle> bundles)
addTagRuleBundle(org.sitemesh.content.tagrules.TagRuleBundle)
multiple times.
This will always append to the existing list of TagRuleBundles, created in
setupDefaults(). To remove these defaults, use clearTagRuleBundles()
or setTagRuleBundles(TagRuleBundle[]).
Note: If setCustomContentProcessor(ContentProcessor) is called,
any TagRuleBundles are ignored, as they are only used by the default ContentProcessor
implementation.
public BUILDER clearTagRuleBundles()
setupDefaults().
public BUILDER setTagRuleBundles(TagRuleBundle... bundles)
clearTagRuleBundles() followed by addTagRuleBundles(TagRuleBundle[]).
Note: If setCustomContentProcessor(ContentProcessor) is called,
any TagRuleBundles are ignored, as they are only used by the default ContentProcessor
implementation.
public BUILDER setTagRuleBundles(Iterable<TagRuleBundle> bundles)
clearTagRuleBundles() followed by #addTagRuleBundles(Iterable) .
Note: If setCustomContentProcessor(ContentProcessor) is called,
any TagRuleBundles are ignored, as they are only used by the default ContentProcessor
implementation.
public BUILDER setCustomContentProcessor(ContentProcessor contentProcessor)
ContentProcessor. If called, this will override
any calls to addTagRuleBundle(TagRuleBundle).
public ContentProcessor getContentProcessor()
ContentProcessor.
public BUILDER addDecoratorPaths(String contentPath,
String... decoratorPaths)
Note: If setCustomDecoratorSelector(DecoratorSelector) is called,
any decorator paths are ignored, as they are only used by the default
DecoratorSelector implementation.
public BUILDER addDecoratorPaths(String contentPath,
List<String> decoratorPaths)
Note: If setCustomDecoratorSelector(DecoratorSelector) is called,
any decorator paths are ignored, as they are only used by the default
DecoratorSelector implementation.
public BUILDER addDecoratorPath(String contentPath,
String decoratorPath)
Note: If setCustomDecoratorSelector(DecoratorSelector) is called,
any decorator paths are ignored, as they are only used by the default
DecoratorSelector implementation.
public BUILDER setCustomDecoratorSelector(DecoratorSelector<CONTEXT> decoratorSelector)
DecoratorSelector. If called, this will override any paths
added with addDecoratorPath(String, String) and instead delegate to
the custom DecoratorSelector.
public DecoratorSelector<CONTEXT> getDecoratorSelector()
DecoratorSelector.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||