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

org.infinispan.tasks.impl.TasksPackageImpl Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev03
Show newest version
package org.infinispan.tasks.impl;

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-08-21T13:55:12.152315320Z")
public final class TasksPackageImpl {
   public static void registerMetadata(ModuleMetadataBuilder.ModuleBuilder builder) {
//start org.infinispan.tasks.impl.TaskManagerFactory
      builder.registerComponentAccessor("org.infinispan.tasks.impl.TaskManagerFactory",
         Arrays.asList("org.infinispan.tasks.TaskManager"),
         new ComponentAccessor("org.infinispan.tasks.impl.TaskManagerFactory",
            0, false, "org.infinispan.factories.AbstractComponentFactory",
            Collections.emptyList()) {
         protected TaskManagerFactory newInstance() {
            return new TaskManagerFactory();
         }

      });

//start org.infinispan.tasks.impl.TaskManagerImpl
      builder.registerComponentAccessor("org.infinispan.tasks.impl.TaskManagerImpl",
         Collections.emptyList(),
         new ComponentAccessor("org.infinispan.tasks.impl.TaskManagerImpl",
            0, false, null,
            Arrays.asList("org.infinispan.manager.EmbeddedCacheManager", "org.infinispan.commons.time.TimeService", "org.infinispan.util.concurrent.BlockingManager", "org.infinispan.util.logging.events.EventLogManager")) {
         protected void wire(TaskManagerImpl instance, WireContext context, boolean start) {
            instance.cacheManager = context.get("org.infinispan.manager.EmbeddedCacheManager", org.infinispan.manager.EmbeddedCacheManager.class, start);
            instance.timeService = context.get("org.infinispan.commons.time.TimeService", org.infinispan.commons.time.TimeService.class, start);
            instance.blockingManager = context.get("org.infinispan.util.concurrent.BlockingManager", org.infinispan.util.concurrent.BlockingManager.class, start);
            instance.eventLogManager = context.get("org.infinispan.util.logging.events.EventLogManager", org.infinispan.util.logging.events.EventLogManager.class, start);
         }

         protected void start(TaskManagerImpl instance) throws Exception {
            instance.start();
         }

      });

//end
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy