View Javadoc

1   /*
2      Copyright 2008 Ramon Servadei
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  package fulmine.event.system;
17  
18  import fulmine.IAddressable;
19  import fulmine.event.IEventManager;
20  import fulmine.event.IEventSource;
21  import fulmine.event.listener.IEventListener;
22  
23  /**
24   * A system event raised when the first {@link IEventListener} instance has been
25   * added as an observer to an {@link IEventSource}. The event identifies the
26   * {@link IEventSource}.
27   * <p>
28   * Application code can register an {@link ISystemEventListener} to receive
29   * these events in order to activate necessary resources to provide data/updates
30   * for the affected {@link IEventSource}.
31   * 
32   * @see EventSourceNotObservedEvent
33   * @author Ramon Servadei
34   */
35  public final class EventSourceObservedEvent extends AbstractSystemEvent
36  {
37      /**
38       * Standard constructor
39       * 
40       * @param context
41       *            the context the event is handled in
42       * @param id
43       *            the identifiable instance
44       */
45      public EventSourceObservedEvent(IEventManager context, IAddressable id)
46      {
47          super(context, id);
48      }
49  }