View Javadoc

1   /*
2    * Copyright 1999-2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */ 
16  
17  package org.apache.commons.workflow;
18  
19  
20  import java.util.EventListener;
21  
22  
23  /**
24   * A <strong>ScopeListener</strong> registers its interest in receiving
25   * <code>ScopeEvent</code> notifications when the occur on a particular
26   * <code>Scope</code> of interest.
27   *
28   * @version $Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
29   * @author Craig R. McClanahan
30   */
31  
32  public interface ScopeListener extends EventListener {
33  
34  
35      // --------------------------------------------------------- Public Methods
36  
37  
38      /**
39       * Invoked when a new bean was added to this <code>scope</code>.
40       *
41       * @param event The <code>ScopeEvent</code> that has occurred
42       */
43      public void beanAdded(ScopeEvent event);
44  
45  
46      /**
47       * Invoked when an existing bean was removed in this <code>scope</code>.
48       *
49       * @param event The <code>ScopeEvent</code> that has occurred
50       */
51      public void beanRemoved(ScopeEvent event);
52  
53  
54      /**
55       * Invoked when an existing bean was replaced in this <code>scope</code>.
56       *
57       * @param event The <code>ScopeEvent</code> that has occurred
58       */
59      public void beanReplaced(ScopeEvent event);
60  
61  
62      /**
63       * Invoked when the entire Scope is cleared.
64       *
65       * @param event The <code>ScopeEvent</code> that has occurred
66       */
67      public void scopeCleared(ScopeEvent event);
68  
69  
70  }
71  
72