You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/08/30 03:04:12 UTC

cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/extension CoreExtensionTagLibrary.java UseBeanExtendedTag.java

dion        2004/08/29 18:04:12

  Added:       jelly/src/test/org/apache/commons/jelly/core/extension
                        CoreExtensionTagLibrary.java
                        UseBeanExtendedTag.java
  Log:
  Add test classes to work the code in JELLY-120
  
  Revision  Changes    Path
  1.1                  jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/extension/CoreExtensionTagLibrary.java
  
  Index: CoreExtensionTagLibrary.java
  ===================================================================
  /*
   * Copyright 2002,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.commons.jelly.core.extension;
  
  import org.apache.commons.jelly.tags.core.CoreTagLibrary;
  
  /**
   * Test tag lib for extending core
   */
  public class CoreExtensionTagLibrary extends CoreTagLibrary {
  
      public CoreExtensionTagLibrary() {
          super();
          registerTag("useBeanX", UseBeanExtendedTag.class);
      }
  }
  
  
  
  1.1                  jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/extension/UseBeanExtendedTag.java
  
  Index: UseBeanExtendedTag.java
  ===================================================================
  /*
   * Copyright 2002,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.commons.jelly.core.extension;
  
  import org.apache.commons.jelly.tags.core.UseBeanTag;
  
  /**
   * Test tag to check the ignored properties work ok
   */
  public class UseBeanExtendedTag extends UseBeanTag {
  
      /**
       * @see UseBeanTag#UseBeanTag()
       */
      public UseBeanExtendedTag() {
          super();
          addIgnoreProperty("name");
      }
  
      /**
       * @see UseBeanTag#UseBeanTag(Class)
       */
      public UseBeanExtendedTag(Class defaultClass) {
          super(defaultClass);
          addIgnoreProperty("name");
      }
  
  }
  
  
  

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