Class Sisu

java.lang.Object
io.smallrye.beanbag.sisu.Sisu

public final class Sisu extends Object
A utility which can configure a BeanBag using Eclipse SISU resources and annotations.
  • Method Details

    • addClassLoader

      public void addClassLoader(ClassLoader classLoader, DependencyFilter filter)
      Scan the given class loader for additional SISU items.
      Parameters:
      classLoader - the class loader to scan (must not be null)
      filter - the dependency filter to apply (must not be null)
    • addClass

      public <T> void addClass(Class<T> clazz, DependencyFilter filter)
      Add the given class as a SISU item.
      Type Parameters:
      T - the class type
      Parameters:
      clazz - the class to add (must not be null)
      filter - the dependency filter to apply (must not be null)
    • configureSisu

      public static void configureSisu(ClassLoader classLoader, BeanBag.Builder builder, DependencyFilter filter)
      Perform SISU configuration on the given builder.
      Parameters:
      classLoader - the class loader to look in for SISU resources (must not be null)
      builder - the container builder to configure (must not be null)
      filter - a filter to apply to all SISU dependency resolutions (must not be null)
    • createFor

      public static Sisu createFor(BeanBag.Builder builder)
      Create a new SISU configurator for the given BeanBag builder.
      Parameters:
      builder - the builder (must not be null)
      Returns:
      the new SISU configurator (not null)