View Javadoc
1   package com.atlassian.plugin.manager.store;
2   
3   import com.atlassian.plugin.manager.PluginPersistentState;
4   import com.atlassian.plugin.manager.PluginPersistentStateStore;
5   
6   /**
7    * Delegating wrapper for {@link PluginPersistentStateStore}.
8    *
9    * @since 3.2.0
10   */
11  public abstract class DelegatingPluginPersistentStateStore implements PluginPersistentStateStore {
12      /**
13       * Obtain the delegate to use for dispatching a request.
14       *
15       * @return the {@link PluginPersistentStateStore} to delegate calls to, must not be null.
16       */
17      public abstract PluginPersistentStateStore getDelegate();
18  
19      @Override
20      public void save(final PluginPersistentState state) {
21          getDelegate().save(state);
22      }
23  
24      @Override
25      public PluginPersistentState load() {
26          return getDelegate().load();
27      }
28  }