org.infinispan.persistence.remote.LifecycleCallbacks Maven / Gradle / Ivy
package org.infinispan.persistence.remote;
import org.infinispan.commons.marshall.AdvancedExternalizer;
import org.infinispan.configuration.global.GlobalConfiguration;
import org.infinispan.factories.GlobalComponentRegistry;
import org.infinispan.lifecycle.AbstractModuleLifecycle;
import org.infinispan.persistence.remote.upgrade.MigrationTask;
import org.infinispan.persistence.remote.upgrade.RemovedFilter;
import java.util.Map;
/**
* @author gustavonalle
* @since 8.2
*/
public class LifecycleCallbacks extends AbstractModuleLifecycle {
@Override
public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg) {
Map> externalizerMap = globalCfg.serialization().advancedExternalizers();
externalizerMap.put(ExternalizerIds.MIGRATION_TASK, new MigrationTask.Externalizer());
externalizerMap.put(ExternalizerIds.REMOVED_FILTER, new RemovedFilter.Externalizer());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy