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);
}
Aggregations