Author: vgritsenko
Date: Sat Oct 23 17:09:21 2004
New Revision: 55399
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/CocoonComponentManager.java
Log:
tabs
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/CocoonComponentManager.java
==============================================================================
---
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/CocoonComponentManager.java
(original)
+++
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/CocoonComponentManager.java
Sat Oct 23 17:09:21 2004
@@ -244,7 +244,7 @@
* Return the processor that is actually processing the request
*/
public static Processor getLastProcessor(Environment env) {
- return (Processor)env.getAttribute("CocoonComponentManager.processor");
+ return (Processor)
env.getAttribute("CocoonComponentManager.processor");
}
/**
@@ -254,14 +254,14 @@
* processed (sub)sitemap.
*/
static public ComponentManager getSitemapComponentManager() {
- final EnvironmentStack stack =
(EnvironmentStack)environmentStack.get();
+ final EnvironmentStack stack =
(EnvironmentStack)environmentStack.get();
- if ( null != stack && !stack.empty()) {
- Object[] o = (Object[])stack.peek();
- return (ComponentManager)o[2];
- }
+ if (null != stack && !stack.empty()) {
+ Object[] o = (Object[]) stack.peek();
+ return (ComponentManager) o[2];
+ }
- // if we don't have an environment yet, just return null
+ // If we don't have an environment yet, just return null
return null;
}
@@ -270,13 +270,12 @@
* Fully Qualified Name(FQN)--unless there are multiple Components for the
same Role. In that
* case, the Role's FQN is appended with "Selector", and we return a
ComponentSelector.
*/
- public Component lookup( final String role )
+ public Component lookup(final String role)
throws ComponentException {
if (null == role) {
final String message =
"ComponentLocator Attempted to retrieve component with null
role.";
-
- throw new ComponentException( role, message );
+ throw new ComponentException(role, message);
}
if (role.equals(SourceResolver.ROLE)) {