1 4 package com.tc.objectserver.managedobject; 5 6 import com.tc.objectserver.core.api.ManagedObjectState; 7 8 11 public abstract class AbstractManagedObjectState implements ManagedObjectState { 12 13 public final ManagedObjectChangeListener getListener() { 14 return getStateFactory().getListener(); 15 } 16 17 public final ManagedObjectStateFactory getStateFactory() { 18 return ManagedObjectStateFactory.getInstance(); 19 } 20 21 24 public final boolean equals(Object o) { 25 if (this == o) return true; 26 if (getClass().getName().equals(o.getClass().getName())) { return basicEquals((AbstractManagedObjectState) o); } 27 return false; 28 } 29 30 protected abstract boolean basicEquals(AbstractManagedObjectState o); 31 32 } 33 | Popular Tags |