unico 2004/02/22 07:10:08
Modified: src/java/org/apache/cocoon/components/cprocessor
SitemapContainer.java
Log:
add some minor documentation
Revision Changes Path
1.4 +13 -1
cocoon-2.2/src/java/org/apache/cocoon/components/cprocessor/SitemapContainer.java
Index: SitemapContainer.java
===================================================================
RCS file:
/home/cvs/cocoon-2.2/src/java/org/apache/cocoon/components/cprocessor/SitemapContainer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SitemapContainer.java 28 Jan 2004 17:25:31 -0000 1.3
+++ SitemapContainer.java 22 Feb 2004 15:10:08 -0000 1.4
@@ -109,6 +109,9 @@
}
}
+ /**
+ * FIXME: Only the root sitemap container needs to provide these.
+ */
public void initialize() throws CompositeException, Exception {
addNativeComponent("<notifier>",NotifyingGenerator.class);
@@ -123,6 +126,9 @@
return (ProcessingNode)
super.getServiceManager().lookup(ProcessingNode.ROLE);
}
+ /**
+ * Overide from super class to provide custom implementation.
+ */
protected ServiceManager provideServiceManager(ServiceManager parent)
throws ServiceException {
@@ -144,11 +150,17 @@
}
}
+ /**
+ * Custom service manager implementation that adds component default
+ * management.
+ */
private static final class SitemapServiceManager extends
FortressServiceManager {
private final Map m_defaultHints;
- private SitemapServiceManager(SitemapContainer container,
ServiceManager parent, Map defaultHints) {
+ private SitemapServiceManager(SitemapContainer container,
+ ServiceManager parent,
+ Map defaultHints) {
super(container,parent);
m_defaultHints = defaultHints;
}