You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/11/17 20:10:16 UTC
svn commit: rev 76161 - cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor
Author: vgritsenko
Date: Wed Nov 17 11:10:15 2004
New Revision: 76161
Modified:
cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/DefaultTreeBuilder.java
Log:
more whitespaces
Modified: cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/DefaultTreeBuilder.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/DefaultTreeBuilder.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/DefaultTreeBuilder.java Wed Nov 17 11:10:15 2004
@@ -71,7 +71,7 @@
protected ServiceManager ownManager;
// -------------------------------------
-
+
/**
* Component processor of the parent manager (can be null for the root sitemap)
*/
@@ -118,7 +118,7 @@
public void service(ServiceManager manager) throws ServiceException {
this.ownManager = manager;
}
-
+
/**
* Get the location of the treebuilder config file. Can be overridden for other versions.
* @return
@@ -126,10 +126,10 @@
protected String getBuilderConfigURL() {
return "resource://org/apache/cocoon/components/treeprocessor/sitemap-language.xml";
}
-
+
public void initialize() throws Exception {
// Load the builder config file
- SourceResolver resolver = (SourceResolver)this.ownManager.lookup(SourceResolver.ROLE);
+ SourceResolver resolver = (SourceResolver) this.ownManager.lookup(SourceResolver.ROLE);
String url = getBuilderConfigURL();
Configuration config;
try {
@@ -141,12 +141,12 @@
} finally {
resolver.release(src);
}
- } catch(Exception e) {
+ } catch (Exception e) {
throw new ConfigurationException("Could not load TreeBuilder configuration from " + url, e);
} finally {
this.ownManager.release(resolver);
}
-
+
// Create the NodeBuilder selector.
CocoonServiceSelector selector = new CocoonServiceSelector() {
protected String getComponentInstanceName() {
@@ -168,9 +168,10 @@
);
this.builderSelector = selector;
-
+
}
+
public void setParentProcessorManager(ServiceManager manager) {
this.parentProcessorManager = manager;
}
@@ -201,8 +202,7 @@
*
* @return a component manager
*/
- protected ServiceManager createServiceManager(Configuration tree) throws Exception
- {
+ protected ServiceManager createServiceManager(Configuration tree) throws Exception {
return this.ownManager;
}
@@ -238,7 +238,7 @@
}
public ProcessingNodeBuilder createNodeBuilder(Configuration config) throws Exception {
- //FIXME : check namespace
+ // FIXME : check namespace
String nodeName = config.getName();
if (this.getLogger().isDebugEnabled()) {
@@ -306,7 +306,7 @@
* Build a processing tree from a <code>Configuration</code>.
*/
public ProcessingNode build(Configuration tree) throws Exception {
-
+
// The namespace use in the whole sitemap is the one of the root element
this.namespace = tree.getNamespace();
@@ -433,7 +433,7 @@
if (type == null) {
type = getProcessor().getComponentInfo().getDefaultType(role);
}
-
+
if (type == null) {
throw new ConfigurationException("No default type exists for 'map:" + statement.getName() +
"' at " + statement.getLocation()
@@ -450,7 +450,7 @@
statement.getName() + "' at " + statement.getLocation(),
ce
);
- }
+ }
this.processorManager.release(selector);
@@ -462,9 +462,8 @@
return type;
}
-
+
public void recycle() {
-
// Reset all data created during the build
this.attributes.clear();
this.canGetNode = false;