KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > managedobject > ManagedObjectChangeListenerProviderImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.managedobject;
5
6 public class ManagedObjectChangeListenerProviderImpl implements ManagedObjectChangeListenerProvider {
7
8   private ManagedObjectChangeListener listener;
9
10   public void setListener(ManagedObjectChangeListener listener) {
11     this.listener = listener;
12   }
13   
14   public ManagedObjectChangeListener getListener() {
15     if (this.listener == null) throw new AssertionError JavaDoc("Listener is null.");
16     return this.listener;
17   }
18
19 }
20
Popular Tags