You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/07/22 12:53:01 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/modules PageLoader.java

henning     2003/07/22 03:53:00

  Modified:    src/java/org/apache/turbine/modules PageLoader.java
  Log:
  Page Loader didn't implement the loader interface. But it should.
  
  Revision  Changes    Path
  1.8       +18 -1     jakarta-turbine-2/src/java/org/apache/turbine/modules/PageLoader.java
  
  Index: PageLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/modules/PageLoader.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PageLoader.java	3 Jun 2003 13:41:25 -0000	1.7
  +++ PageLoader.java	22 Jul 2003 10:53:00 -0000	1.8
  @@ -76,6 +76,7 @@
    */
   public class PageLoader
       extends GenericLoader
  +    implements Loader
   {
       /** Logging */
       private static Log log = LogFactory.getLog(PageLoader.class);
  @@ -133,6 +134,22 @@
       {
           // Execute page
           getInstance(name).build(data);
  +    }
  +
  +    /**
  +     * Pulls out an instance of the object by name.  Name is just the
  +     * single name of the object. This is equal to getInstance but
  +     * returns an Assembler object and is needed to fulfil the Loader
  +     * interface.
  +     *
  +     * @param name Name of object instance.
  +     * @return A Screen with the specified name, or null.
  +     * @exception Exception a generic exception.
  +     */
  +    public Assembler getAssembler(String name)
  +        throws Exception
  +    {
  +        return getInstance(name);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org