Class InfinispanClientProducer


  • @ApplicationScoped
    public class InfinispanClientProducer
    extends Object
    Produces a configured remote cache manager instance
    • Constructor Detail

      • InfinispanClientProducer

        public InfinispanClientProducer()
    • Method Detail

      • replaceProperties

        public static void replaceProperties​(Properties properties)
                                      throws ClassNotFoundException
        This method is designed to be called during static initialization time. This is so we have access to the classes, and thus we can use reflection to find and instantiate any instances we may need
        Parameters:
        properties - properties file read from hot rod
        Throws:
        ClassNotFoundException - if a class is not actually found that should be present
      • handleProtoStreamRequirements

        public static void handleProtoStreamRequirements​(Properties properties)
        Sets up additional properties for use when proto stream marshaller is in use
        Parameters:
        properties - the properties to be updated for querying
      • destroy

        @PreDestroy
        public void destroy()
      • getRemoteCache

        @Remote
        @Produces
        public <K,​V> org.infinispan.client.hotrod.RemoteCache<K,​V> getRemoteCache​(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
                                                                                              org.infinispan.client.hotrod.RemoteCacheManager cacheManager)
      • counterManager

        @Produces
        public org.infinispan.counter.api.CounterManager counterManager​(org.infinispan.client.hotrod.RemoteCacheManager cacheManager)
      • remoteCacheManager

        @Produces
        public org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager()
      • configure

        void configure​(Properties properties)