Interface ClassNameBuilder<T>

Type Parameters:
T - The context's class
All Known Implementing Classes:
AbstractServiceClassNameBuilder, ManifestAttributeClassNameBuilder, ServiceClassNameBuilder, ServiceClassNameBuilder

public interface ClassNameBuilder<T>
A class that finds the plugin's concrete class name from a context (for instance from a manifest attribute of a jar).
  • Method Summary

    Modifier and Type
    Method
    Description
    get(T context, Class<?> aClass)
    Gets the class names of the plugin implementations.
  • Method Details

    • get

      Set<String> get(T context, Class<?> aClass) throws IOException
      Gets the class names of the plugin implementations.
      Parameters:
      context - The jar that contains the plugin
      aClass - The interface or abstract class implemented by the plugin.
      Returns:
      The class names of the plugin implementation (typically a list of argument of the loadClass method of a ClassLoader).
      Throws:
      IOException - if something went wrong