Author: thorsten
Date: Tue May  6 02:09:56 2008
New Revision: 653716

URL: http://svn.apache.org/viewvc?rev=653716&view=rev
Log:
Adding javadoc and cleaning up the class with obsolete code.

Modified:
    forrest/trunk/main/java/org/apache/forrest/locationmap/lm/ActNode.java

Modified: forrest/trunk/main/java/org/apache/forrest/locationmap/lm/ActNode.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/main/java/org/apache/forrest/locationmap/lm/ActNode.java?rev=653716&r1=653715&r2=653716&view=diff
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/locationmap/lm/ActNode.java 
(original)
+++ forrest/trunk/main/java/org/apache/forrest/locationmap/lm/ActNode.java Tue 
May  6 02:09:56 2008
@@ -36,7 +36,21 @@
 
 
 /**
- * Locationmap select statement.
+ * Locationmap act statement.
+ * 
+ * <p>
+ * The &lt;act&gt; element has one optional <code>type</code> attribute
+ * which identifies the type the associated <code>[EMAIL PROTECTED] 
Action}<code> should act.
+ * If no <code>type</code> attribute is used the default action is used.
+ * </p>
+ * 
+ * Action statements can contain <code>&lt;act&gt;</code>,
+ * <code>&lt;select&gt;</code> and <code>&lt;location&gt;</code>
+ * child statements.
+ * 
+ * <p>
+ * Action nodes can be parametrized using <code>&lt;parameter&gt;</code> child 
elements.
+ * </p>
  */
 public final class ActNode extends AbstractNode {
     
@@ -80,14 +94,6 @@
         catch (PatternException e) {
             throw new ConfigurationException("unable to resolve action 'src' 
attribute");
         }
-//        try {
-//            m_src = VariableResolverFactory.getResolver(
-//                    configuration.getAttribute("src"), super.m_manager);
-//        } catch (PatternException e) {
-//            final String message = "Illegal pattern syntax at for location 
attribute 'src'" +
-//                    " at " + configuration.getLocation();
-//            throw new ConfigurationException(message,e);
-//        }
         try {
             final ServiceSelector selectors = (ServiceSelector) 
super.m_manager.lookup(Action.ROLE + "Selector");
             m_action = (Action) selectors.select(m_type);
@@ -126,10 +132,7 @@
         }
         m_nodes = (AbstractNode[]) nodes.toArray(new 
AbstractNode[nodes.size()]);
     }
-    public void service(ServiceManager manager) throws ServiceException {
-        //FIXME: Determine whether this is really necessary anymore.
-        this.resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);
-    }
+    
     /* (non-Javadoc)
      * @see 
org.apache.forrest.locationmap.lm.AbstractNode#locate(java.util.Map, 
org.apache.cocoon.components.treeprocessor.InvokeContext)
      */
@@ -156,18 +159,4 @@
         return null;
     }
     
-//    public String locate(Map om, InvokeContext context) throws Exception {
-//        
-//        Parameters parameters = resolveParameters(context,om);
-//        for (int i = 0; i < m_nodes.length; i++) {
-//            String location = m_nodes[i].locate(om,context);
-//            if (m_action.act().select(location,om,parameters)) {
-//                if (getLogger().isDebugEnabled()) {
-//                    getLogger().debug("selected: " + location);
-//                }
-//                return location;
-//            }
-//        }
-//        return null;
-//    }
 }
\ No newline at end of file