Class ComponentRegistry

    • Constructor Detail

      • ComponentRegistry

        public ComponentRegistry​(java.lang.String cacheName,
                                 Configuration configuration,
                                 AdvancedCache<?,​?> cache,
                                 GlobalComponentRegistry globalComponents,
                                 java.lang.ClassLoader defaultClassLoader)
        Creates an instance of the component registry. The configuration passed in is automatically registered.
        Parameters:
        configuration - configuration with which this is created
        cache - cache
        globalComponents - Shared Component Registry to delegate to
    • Method Detail

      • getComponent

        public final <T> T getComponent​(java.lang.String componentTypeName,
                                        java.lang.String name,
                                        boolean nameIsFQCN)
        Overrides:
        getComponent in class AbstractComponentRegistry
      • getLocalComponent

        public final <T> T getLocalComponent​(java.lang.String componentTypeName,
                                             java.lang.String name,
                                             boolean nameIsFQCN)
      • getLocalComponent

        public final <T> T getLocalComponent​(java.lang.Class<T> componentType)
      • rewire

        public void rewire()
        Description copied from class: AbstractComponentRegistry
        Rewires components. Used to rewire components in the CR if a cache has been stopped (moved to state TERMINATED), which would (almost) empty the registry of components. Rewiring will re-inject all dependencies so that the cache can be started again.

        Overrides:
        rewire in class AbstractComponentRegistry
      • getCacheName

        public java.lang.String getCacheName()
      • getInternalMarshaller

        public StreamingMarshaller getInternalMarshaller()
        Caching shortcut for #getComponent(StreamingMarshaller.class, INTERNAL_MARSHALLER);
      • getPersistenceMarshaller

        public PersistenceMarshaller getPersistenceMarshaller()
        Caching shortcut for #getComponent(PersistenceMarshaller.class, PERSISTENCE_MARSHALLER);
      • getStateTransferManager

        public StateTransferManager getStateTransferManager()
        Caching shortcut for #getComponent(StateTransferManager.class);
      • getDistributionManager

        public DistributionManager getDistributionManager()
        Caching shortcut for #getComponent(DistributionManager.class);
      • getResponseGenerator

        public ResponseGenerator getResponseGenerator()
        Caching shortcut for #getComponent(ResponseGenerator.class);
      • getCommandsFactory

        public org.infinispan.commands.CommandsFactory getCommandsFactory()
        Caching shortcut for #getLocalComponent(CommandsFactory.class);
      • getStateTransferLock

        public StateTransferLock getStateTransferLock()
        Caching shortcut for #getComponent(StateTransferManager.class);
      • getVersionGenerator

        public VersionGenerator getVersionGenerator()
        Caching shortcut for #getLocalComponent(VersionGenerator.class)
      • getPerCacheInboundInvocationHandler

        public PerCacheInboundInvocationHandler getPerCacheInboundInvocationHandler()
        Caching shortcut for #getComponent(PerCacheInboundInvocationHandler.class);
      • bootstrapComponents

        protected void bootstrapComponents()
        Invoked before any ModuleCommandInitializer. This is a good place to register components that don't have any dependency.
      • cacheComponents

        public void cacheComponents()
        Invoked last after all services are wired
      • getTransactionTable

        public final org.infinispan.transaction.impl.TransactionTable getTransactionTable()
      • getTransactionTableRef

        public final org.infinispan.factories.impl.ComponentRef<org.infinispan.transaction.impl.TransactionTable> getTransactionTableRef()
      • registerVersionGenerator

        public final void registerVersionGenerator​(NumericVersionGenerator newVersionGenerator)
      • getCache

        public org.infinispan.factories.impl.ComponentRef<AdvancedCache> getCache()
      • getInterceptorChain

        public org.infinispan.factories.impl.ComponentRef<AsyncInterceptorChain> getInterceptorChain()
      • getBackupSender

        public org.infinispan.factories.impl.ComponentRef<BackupSender> getBackupSender()
      • getBiasManager

        public org.infinispan.factories.impl.ComponentRef<BiasManager> getBiasManager()
      • getCacheByteString

        public ByteString getCacheByteString()
      • getCacheNotifier

        public org.infinispan.factories.impl.ComponentRef<CacheNotifier> getCacheNotifier()
      • getCancellationService

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.commands.CancellationService> getCancellationService()
      • getConflictManager

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.conflict.impl.InternalConflictManager> getConflictManager()
      • getClusterCacheNotifier

        public org.infinispan.factories.impl.ComponentRef<ClusterCacheNotifier> getClusterCacheNotifier()
      • getClusterStreamManager

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.stream.impl.ClusterStreamManager> getClusterStreamManager()
      • getCommandAckCollector

        public org.infinispan.factories.impl.ComponentRef<CommandAckCollector> getCommandAckCollector()
      • getInternalDataContainer

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.container.impl.InternalDataContainer> getInternalDataContainer()
      • getInternalEntryFactory

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.container.impl.InternalEntryFactory> getInternalEntryFactory()
      • getInvocationContextFactory

        public org.infinispan.factories.impl.ComponentRef<InvocationContextFactory> getInvocationContextFactory()
      • getLocalPublisherManager

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.reactive.publisher.impl.LocalPublisherManager> getLocalPublisherManager()
      • getPublisherHandler

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.reactive.publisher.impl.PublisherHandler> getPublisherHandler()
      • getLocalStreamManager

        public org.infinispan.factories.impl.ComponentRef<org.infinispan.stream.impl.LocalStreamManager> getLocalStreamManager()
      • getLockManager

        public org.infinispan.factories.impl.ComponentRef<LockManager> getLockManager()
      • getOrderedUpdatesManager

        public org.infinispan.factories.impl.ComponentRef<OrderedUpdatesManager> getOrderedUpdatesManager()
      • getRecoveryManager

        public org.infinispan.factories.impl.ComponentRef<RecoveryManager> getRecoveryManager()
      • getRpcManager

        public org.infinispan.factories.impl.ComponentRef<RpcManager> getRpcManager()
      • getXSiteStateTransferManager

        public org.infinispan.factories.impl.ComponentRef<XSiteStateTransferManager> getXSiteStateTransferManager()