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

org.infinispan.factories.NamedComponentFactory Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.factories;

/**
 * A specialized type of component factory that knows how to create named components, identified with the {@link
 * org.infinispan.factories.annotations.ComponentName} annotation on the classes requested in {@link
 * org.infinispan.factories.annotations.Inject} annotated methods.
 *
 * @author Manik Surtani
 * @since 4.0
 */
public abstract class NamedComponentFactory extends AbstractComponentFactory {

   @Override
   public  T construct(Class componentType) {

      // by default, use the FQCN of the component type.
      return construct(componentType, componentType.getName());
   }

   /**
    * Constructs a component.
    *
    * @param componentType type of component
    * @return a component
    */
   public abstract  T construct(Class componentType, String componentName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy