1   package eu.fbk.knowledgestore;
2   
3   import javax.annotation.Nullable;
4   
5   import com.google.common.collect.ForwardingObject;
6   
7   public abstract class ForwardingKnowledgeStore extends ForwardingObject implements KnowledgeStore {
8   
9       @Override
10      protected abstract KnowledgeStore delegate();
11  
12      @Override
13      public Session newSession() throws IllegalStateException {
14          return delegate().newSession();
15      }
16  
17      @Override
18      public Session newSession(@Nullable final String username, @Nullable final String password)
19              throws IllegalStateException {
20          return delegate().newSession(username, password);
21      }
22  
23      @Override
24      public boolean isClosed() {
25          return delegate().isClosed();
26      }
27  
28      @Override
29      public void close() {
30          delegate().close();
31      }
32  
33  }