View Javadoc

1   /*
2    * Copyright (C) The MetaClass Group. All rights reserved.
3    *
4    * This software is published under the terms of the Spice
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
7    */
8   package org.codehaus.metaclass.tools.tasks;
9   
10  /***
11   * An Ant type representing a set of Interceptor definitions.
12   *
13   * @author Peter Donald
14   * @version $Revision: 1.2 $ $Date: 2003/11/27 08:15:29 $
15   */
16  public class InterceptorSet
17      extends PluginSet
18  {
19      /***
20       * Create set.
21       */
22      public InterceptorSet()
23      {
24          super( "Interceptor" );
25      }
26  
27      /***
28       * Add an interceptor definition that will create interceptor to process metadata.
29       *
30       * @param element the interceptor definition
31       */
32      public void addInterceptor( final PluginElement element )
33      {
34          addPlugin( element );
35      }
36  
37      /***
38       * Add a set of Interceptors.
39       *
40       * @param set the interceptor set
41       */
42      public void addInterceptorSet( final InterceptorSet set )
43      {
44          addPluginSet( set );
45      }
46  }