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      /**
14       * Obtain the delegate to use for dispatching a request.
15       *
16       * @return the {@link PluginPersistentStateStore} to delegate calls to, must not be null.
17       */
18      public abstract PluginPersistentStateStore getDelegate();
19  
20      @Override
21      public void save(final PluginPersistentState state)
22      {
23          getDelegate().save(state);
24      }
25  
26      @Override
27      public PluginPersistentState load()
28      {
29          return getDelegate().load();
30      }
31  }