jvanzyl     02/03/13 16:36:44

  Modified:    src/java/org/apache/stratum/component ComponentLoader.java
  Log:
  
  
  Revision  Changes    Path
  1.6       +39 -2     
jakarta-turbine-stratum/src/java/org/apache/stratum/component/ComponentLoader.java
  
  Index: ComponentLoader.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/component/ComponentLoader.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ComponentLoader.java      14 Mar 2002 00:06:31 -0000      1.5
  +++ ComponentLoader.java      14 Mar 2002 00:36:43 -0000      1.6
  @@ -65,17 +65,44 @@
   /**
    * Loader for Components implementing the lifecyle Interfaces.
    *
  + * NOTE: This class is in its infancy and will more than likely
  + *       change.
  + *
    * @author <a href="mailto:eric NOSPAM dobbse.net">Eric Dobbs</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Martin Poeschl</a>
  - * @version $Id: ComponentLoader.java,v 1.5 2002/03/14 00:06:31 mpoeschl Exp $
  + * @version $Id: ComponentLoader.java,v 1.6 2002/03/14 00:36:43 jvanzyl Exp $
    */
   public class ComponentLoader
   {
  +    /**
  +     * Log4j category used for logging. NOTE: we should change this to
  +     * use the commons-logging API.
  +     */
       private static Category log = Category.getInstance(ComponentLoader.class);
  +    
  +    /**
  +     * Component tag used in Configurations
  +     */
       private static String COMPONENT = "component";
  +    
  +    /**
  +     * Class name tag used in Configurations
  +     */
       private static String CLASSNAME = "classname";
  +    
  +    /**
  +     *  Extension used for Configuration files.
  +     */
       private static String CONFIG    = "config";
  +    
  +    /**
  +     * Name tag used in Configurations
  +     */
       private static String NAME      = "name";
  +    
  +    /**
  +     * Configuration used by this ComponentLoader.
  +     */
       private Configuration configuration;
   
       /**
  @@ -89,11 +116,21 @@
       }
   
       /**
  +     * Set the configuration for this ComponentLoader
  +     *
  +     * @param configuration Configuration
  +     */
  +    public void setConfiguration(Configuration configuration)
  +    {
  +        this.configuration = configuration;
  +    }
  +
  +    /**
        * Support method for testing the constructor
        *
        * @return the configuration
        */
  -    protected Configuration getConfiguration()
  +    public Configuration getConfiguration()
       {
           return configuration;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to