All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.counter.impl.factory.ClusteredCounterPackageImpl Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev05
Show newest version
package org.infinispan.counter.impl.factory;

import java.util.Arrays;
import java.util.Collections;
import javax.annotation.processing.Generated;

import org.infinispan.factories.impl.ComponentAccessor;
import org.infinispan.factories.impl.ModuleMetadataBuilder;
import org.infinispan.factories.impl.MBeanMetadata;
import org.infinispan.factories.impl.MBeanMetadata.AttributeMetadata;
import org.infinispan.factories.impl.MBeanMetadata.OperationMetadata;
import org.infinispan.factories.impl.MBeanMetadata.OperationParameterMetadata;
import org.infinispan.factories.impl.WireContext;
import org.infinispan.lifecycle.ModuleLifecycle;

/**
 * @api.private 
 */
@Generated(value = "org.infinispan.component.processor.Generator", date = "2024-10-05T10:03:24.866214912Z")
public final class ClusteredCounterPackageImpl {
   public static void registerMetadata(ModuleMetadataBuilder.ModuleBuilder builder) {
//start org.infinispan.counter.impl.factory.CacheBasedStrongCounterFactory
      builder.registerComponentAccessor("org.infinispan.counter.impl.factory.CacheBasedStrongCounterFactory",
         Collections.emptyList(),
         new ComponentAccessor("org.infinispan.counter.impl.factory.CacheBasedStrongCounterFactory",
            0, false, "org.infinispan.counter.impl.factory.CacheBaseCounterFactory",
            Collections.emptyList()));

//start org.infinispan.counter.impl.factory.CounterComponentsFactory
      builder.registerComponentAccessor("org.infinispan.counter.impl.factory.CounterComponentsFactory",
         Arrays.asList("org.infinispan.counter.impl.factory.WeakCounterFactory", "org.infinispan.counter.impl.factory.StrongCounterFactory", "org.infinispan.counter.impl.listener.CounterManagerNotificationManager", "org.infinispan.counter.impl.manager.CounterConfigurationManager", "org.infinispan.counter.impl.manager.CounterConfigurationStorage", "org.infinispan.counter.api.CounterManager", "org.infinispan.counter.impl.manager.EmbeddedCounterManager"),
         new ComponentAccessor("org.infinispan.counter.impl.factory.CounterComponentsFactory",
            0, false, "org.infinispan.factories.AbstractComponentFactory",
            Collections.emptyList()) {
         protected CounterComponentsFactory newInstance() {
            return new CounterComponentsFactory();
         }

      });

//start org.infinispan.counter.impl.factory.CacheBasedWeakCounterFactory
      builder.registerComponentAccessor("org.infinispan.counter.impl.factory.CacheBasedWeakCounterFactory",
         Collections.emptyList(),
         new ComponentAccessor("org.infinispan.counter.impl.factory.CacheBasedWeakCounterFactory",
            0, false, "org.infinispan.counter.impl.factory.CacheBaseCounterFactory",
            Collections.emptyList()));

//start org.infinispan.counter.impl.factory.CacheBaseCounterFactory
      builder.registerComponentAccessor("org.infinispan.counter.impl.factory.CacheBaseCounterFactory",
         Collections.emptyList(),
         new ComponentAccessor("org.infinispan.counter.impl.factory.CacheBaseCounterFactory",
            2, false, null,
            Arrays.asList("org.infinispan.util.concurrent.BlockingManager", "org.infinispan.manager.EmbeddedCacheManager", "org.infinispan.counter.impl.listener.CounterManagerNotificationManager")) {
         protected void wire(CacheBaseCounterFactory instance, WireContext context, boolean start) {
            instance.blockingManager = context.get("org.infinispan.util.concurrent.BlockingManager", org.infinispan.util.concurrent.BlockingManager.class, start);
            instance.cacheManager = context.get("org.infinispan.manager.EmbeddedCacheManager", org.infinispan.manager.EmbeddedCacheManager.class, start);
            instance.notificationManager = context.get("org.infinispan.counter.impl.listener.CounterManagerNotificationManager", org.infinispan.counter.impl.listener.CounterManagerNotificationManager.class, start);
         }

      });

//end
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy