Search in sources :

Example 1 with PersistenceContextInitializerImpl

use of org.infinispan.query.core.stats.impl.PersistenceContextInitializerImpl in project infinispan by infinispan.

the class LifecycleManager method cacheManagerStarting.

@Override
public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg) {
    gcr.registerComponent(new QueryCache(), QueryCache.class);
    Map<Integer, AdvancedExternalizer<?>> externalizerMap = globalCfg.serialization().advancedExternalizers();
    externalizerMap.put(ExternalizerIds.ICKLE_FILTER_AND_CONVERTER, new IckleFilterAndConverter.IckleFilterAndConverterExternalizer());
    externalizerMap.put(ExternalizerIds.ICKLE_FILTER_RESULT, new IckleFilterAndConverter.FilterResultExternalizer());
    externalizerMap.put(ExternalizerIds.ICKLE_CACHE_EVENT_FILTER_CONVERTER, new IckleCacheEventFilterConverter.Externalizer());
    externalizerMap.put(ExternalizerIds.ICKLE_CONTINUOUS_QUERY_CACHE_EVENT_FILTER_CONVERTER, new IckleContinuousQueryCacheEventFilterConverter.Externalizer());
    externalizerMap.put(ExternalizerIds.ICKLE_CONTINUOUS_QUERY_RESULT, new ContinuousQueryResult.Externalizer());
    externalizerMap.put(ExternalizerIds.ICKLE_DELETE_FUNCTION, new EmbeddedQuery.DeleteFunctionExternalizer());
    SerializationContextRegistry ctxRegistry = gcr.getComponent(SerializationContextRegistry.class);
    ctxRegistry.addContextInitializer(PERSISTENCE, new PersistenceContextInitializerImpl());
}
Also used : ContinuousQueryResult(org.infinispan.query.core.impl.continuous.ContinuousQueryResult) IckleContinuousQueryCacheEventFilterConverter(org.infinispan.query.core.impl.continuous.IckleContinuousQueryCacheEventFilterConverter) SerializationContextRegistry(org.infinispan.marshall.protostream.impl.SerializationContextRegistry) PersistenceContextInitializerImpl(org.infinispan.query.core.stats.impl.PersistenceContextInitializerImpl) IckleFilterAndConverter(org.infinispan.query.core.impl.eventfilter.IckleFilterAndConverter) AdvancedExternalizer(org.infinispan.commons.marshall.AdvancedExternalizer) IckleCacheEventFilterConverter(org.infinispan.query.core.impl.eventfilter.IckleCacheEventFilterConverter)

Aggregations

AdvancedExternalizer (org.infinispan.commons.marshall.AdvancedExternalizer)1 SerializationContextRegistry (org.infinispan.marshall.protostream.impl.SerializationContextRegistry)1 ContinuousQueryResult (org.infinispan.query.core.impl.continuous.ContinuousQueryResult)1 IckleContinuousQueryCacheEventFilterConverter (org.infinispan.query.core.impl.continuous.IckleContinuousQueryCacheEventFilterConverter)1 IckleCacheEventFilterConverter (org.infinispan.query.core.impl.eventfilter.IckleCacheEventFilterConverter)1 IckleFilterAndConverter (org.infinispan.query.core.impl.eventfilter.IckleFilterAndConverter)1 PersistenceContextInitializerImpl (org.infinispan.query.core.stats.impl.PersistenceContextInitializerImpl)1