All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.persistence.jdbc.mixed.InitialisationContextDelegate Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.persistence.jdbc.mixed;

import org.infinispan.Cache;
import org.infinispan.commons.io.ByteBufferFactory;
import org.infinispan.commons.marshall.StreamingMarshaller;
import org.infinispan.configuration.cache.StoreConfiguration;
import org.infinispan.marshall.core.MarshalledEntryFactory;
import org.infinispan.persistence.spi.InitializationContext;
import org.infinispan.util.TimeService;

/**
 * // TODO: Document this
 *
 * @author Mircea Markus
 * @since 6.0
 */
public class InitialisationContextDelegate implements InitializationContext {

   private final InitializationContext actual;

   private final StoreConfiguration storeConfiguration;


   public InitialisationContextDelegate(InitializationContext actual, StoreConfiguration storeConfiguration) {
      this.actual = actual;
      this.storeConfiguration = storeConfiguration;
   }

   @Override
   public StoreConfiguration getConfiguration() {
      return storeConfiguration;
   }

   @Override
   public Cache getCache() {
      return actual.getCache();
   }

   @Override
   public StreamingMarshaller getMarshaller() {
      return actual.getMarshaller();
   }

   @Override
   public TimeService getTimeService() {
      return actual.getTimeService();
   }

   @Override
   public ByteBufferFactory getByteBufferFactory() {
      return actual.getByteBufferFactory();
   }

   @Override
   public MarshalledEntryFactory getMarshalledEntryFactory() {
      return actual.getMarshalledEntryFactory();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy