Search in sources :

Example 31 with Start

use of org.infinispan.factories.annotations.Start in project infinispan by infinispan.

the class ProtobufMetadataManagerImpl method start.

@Start
void start() {
    GlobalConfiguration globalConfiguration = cacheManager.getCacheManagerConfiguration();
    internalCacheRegistry.registerInternalCache(PROTOBUF_METADATA_CACHE_NAME, getProtobufMetadataCacheConfig(globalConfiguration).build(), EnumSet.of(InternalCacheRegistry.Flag.USER, InternalCacheRegistry.Flag.PROTECTED, InternalCacheRegistry.Flag.PERSISTENT));
    Collection<SerializationContextInitializer> initializers = globalConfiguration.serialization().contextInitializers();
    if (initializers == null || initializers.isEmpty()) {
        initializers = ServiceFinder.load(SerializationContextInitializer.class, globalConfiguration.classLoader());
    }
    processSerializationContextInitializer(initializers);
}
Also used : GlobalConfiguration(org.infinispan.configuration.global.GlobalConfiguration) SerializationContextInitializer(org.infinispan.protostream.SerializationContextInitializer) Start(org.infinispan.factories.annotations.Start)

Aggregations

Start (org.infinispan.factories.annotations.Start)31 Configuration (org.infinispan.configuration.cache.Configuration)7 Inject (org.infinispan.factories.annotations.Inject)7 Scope (org.infinispan.factories.scopes.Scope)7 Scopes (org.infinispan.factories.scopes.Scopes)7 Log (org.infinispan.util.logging.Log)7 LogFactory (org.infinispan.util.logging.LogFactory)7 CompletionStage (java.util.concurrent.CompletionStage)6 TimeService (org.infinispan.commons.time.TimeService)6 HashSet (java.util.HashSet)5 List (java.util.List)5 Transaction (javax.transaction.Transaction)5 CommandsFactory (org.infinispan.commands.CommandsFactory)5 PutKeyValueCommand (org.infinispan.commands.write.PutKeyValueCommand)5 GlobalConfiguration (org.infinispan.configuration.global.GlobalConfiguration)5 InvocationContext (org.infinispan.context.InvocationContext)5 FlagBitSets (org.infinispan.context.impl.FlagBitSets)5 KeyPartitioner (org.infinispan.distribution.ch.KeyPartitioner)5 ComponentRef (org.infinispan.factories.impl.ComponentRef)5 Transport (org.infinispan.remoting.transport.Transport)5