|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.pipeline.impl.PipelineComponentInfo
Holds informations defined in <map:components> such as default hint, labels and mime-types that are needed when building a processor and to manage inheritance when building child processors.
In previous versions of the sitemap engine, this information was stored in specialized
extensions of ComponentSelector (SitemapComponentSelector
and
OutputComponentSelector
), which led to a strong dependency on the chosen component
container implementation. This is now a regular component that also "listens" to modifications
of the service manager when it is built.
Field Summary | |
protected static String |
GENERATOR_PREFIX
|
protected boolean |
locked
Lock that prevents further modification |
protected PipelineComponentInfo |
parent
Component info for the parent processor |
protected static String |
READER_PREFIX
|
static String |
ROLE
The role to lookup this component. |
protected static String |
SERIALIZER_PREFIX
|
protected static String |
TRANSFORMER_PREFIX
|
Constructor Summary | |
PipelineComponentInfo(PipelineComponentInfo parent)
|
Method Summary | |
void |
addData(Map map)
|
void |
componentAdded(String role,
String clazz,
Configuration config)
Grabs on the fly the sitemap-related information on generators, transformers, serializers and readers when they're declared in the ServiceManager . |
Map |
getData()
|
String |
getDefaultType(String role)
|
String[] |
getLabels(String role,
String type)
|
String |
getMimeType(String role,
String type)
|
String |
getPipelineHint(String role,
String type)
|
boolean |
hasLabel(String role,
String type,
String label)
|
void |
lock()
Lock this component info object at the end of processor building to prevent any further changes. |
void |
setData(Map map)
|
void |
setDefaultType(String role,
String hint)
|
void |
setLabels(String role,
String[] labels)
|
void |
setMimeType(String role,
String mimeType)
|
void |
setPipelineHint(String role,
String hint)
|
protected void |
setupLabelAndPipelineHint(String role,
Configuration config)
|
protected void |
setupMimeType(String role,
Configuration config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ROLE
protected static final String GENERATOR_PREFIX
protected static final String TRANSFORMER_PREFIX
protected static final String SERIALIZER_PREFIX
protected static final String READER_PREFIX
protected PipelineComponentInfo parent
protected boolean locked
Constructor Detail |
public PipelineComponentInfo(PipelineComponentInfo parent)
Method Detail |
public void componentAdded(String role, String clazz, Configuration config)
ServiceManager
.
This method is triggered when a component is added on a CocoonServiceManager
.
role
- the component's roleclazz
- the component's classconfig
- the component's configurationprotected void setupLabelAndPipelineHint(String role, Configuration config)
protected void setupMimeType(String role, Configuration config)
public void lock()
public void setDefaultType(String role, String hint)
public String getDefaultType(String role)
public void setPipelineHint(String role, String hint)
public String getPipelineHint(String role, String type)
public void setMimeType(String role, String mimeType)
public String getMimeType(String role, String type)
public void setLabels(String role, String[] labels)
public String[] getLabels(String role, String type)
public boolean hasLabel(String role, String type, String label)
public Map getData()
public void setData(Map map)
public void addData(Map map)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |