Abstract implementation of the Store interface to support most of the functionality required by a Store.
| 38 | * {@link Store}. |
| 39 | */ |
| 40 | public abstract class StoreBase extends LifecycleBase implements Store { |
| 41 | |
| 42 | /** |
| 43 | * Default constructor. |
| 44 | */ |
| 45 | public StoreBase() { |
| 46 | } |
| 47 | |
| 48 | // ----------------------------------------------------- Instance Variables |
| 49 | |
| 50 | /** |
| 51 | * Name to register for this Store, used for logging. |
| 52 | */ |
| 53 | protected static final String storeName = "StoreBase"; |
| 54 | |
| 55 | /** |
| 56 | * The property change support for this component. |
| 57 | */ |
| 58 | protected final PropertyChangeSupport support = new PropertyChangeSupport(this); |
| 59 | |
| 60 | /** |
| 61 | * The string manager for this package. |
| 62 | */ |
| 63 | protected static final StringManager sm = StringManager.getManager(StoreBase.class); |
| 64 | |
| 65 | /** |
| 66 | * The Manager with which this Store is associated. |
| 67 | */ |
| 68 | protected Manager manager; |
| 69 | |
| 70 | |
| 71 | // ------------------------------------------------------------- Properties |
| 72 | |
| 73 | /** |
| 74 | * Return the name for this Store, used for logging. |
| 75 | * |
| 76 | * @return the store name |
| 77 | */ |
| 78 | public String getStoreName() { |
| 79 | return storeName; |
| 80 | } |
| 81 | |
| 82 | |
| 83 | @Override |
| 84 | public void setManager(Manager manager) { |
| 85 | Manager oldManager = this.manager; |
| 86 | this.manager = manager; |
| 87 | support.firePropertyChange("manager", oldManager, this.manager); |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public Manager getManager() { |
| 92 | return this.manager; |
| 93 | } |
| 94 | |
| 95 | |
| 96 | // --------------------------------------------------------- Public Methods |
| 97 |
nothing calls this directly
no test coverage detected