View Javadoc

1   package at.ac.tuwien.infosys.sm4all.copal.api.helpers;
2   
3   import at.ac.tuwien.infosys.sm4all.copal.api.ContextListener;
4   
5   /**
6    * Helper class for {@link ContextListener}s.
7    * 
8    * @author sanjin
9    */
10  public abstract class AbstractContextListener implements ContextListener {
11  
12      private final String name;
13  
14      /**
15       * Use specified <code>name</code> as return value for
16       * {@link AbstractContextListener#getName() getName()} method.
17       * 
18       * @param name the name of the context listener.
19       */
20      protected AbstractContextListener(final String name) {
21          this.name = name;
22      }
23  
24      @Override
25      public final String getName() {
26          return this.name;
27      }
28  }