|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.components.treeprocessor.ProcessorComponentInfo
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, these informations where store 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 | |
static String |
ROLE
|
Constructor Summary | |
ProcessorComponentInfo(ProcessorComponentInfo parent)
|
Method Summary | |
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 .
|
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 |
prepareConfig(String role,
String clazz,
Configuration config)
Prepares the configuration for pooled sitemap components: Per default pooled components are proxied - we override this for generators, transformers, serializers, readers and pipes |
void |
roleAliased(String existingRole,
String newRole)
|
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
Constructor Detail |
public ProcessorComponentInfo(ProcessorComponentInfo 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 configurationpublic void prepareConfig(String role, String clazz, Configuration config)
role
- the component's roleclazz
- the component's classconfig
- the component's configurationpublic void roleAliased(String existingRole, String newRole)
public void lock()
public String getDefaultType(String role)
public String getPipelineHint(String role, String type)
public String getMimeType(String role, String type)
public String[] getLabels(String role, String type)
public boolean hasLabel(String role, String type, String label)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |