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 Summary

    Modifier and Type
    Method
    Description
    <T> void
    addClass(Class<T> clazz, io.smallrye.beanbag.DependencyFilter filter)
    Add the given class as a SISU item.
    void
    addClassLoader(ClassLoader classLoader, io.smallrye.beanbag.DependencyFilter filter)
    Scan the given class loader for additional SISU items.
    static void
    configureSisu(ClassLoader classLoader, io.smallrye.beanbag.BeanBag.Builder builder, io.smallrye.beanbag.DependencyFilter filter)
    Perform SISU configuration on the given builder.
    static Sisu
    createFor(io.smallrye.beanbag.BeanBag.Builder builder)
    Create a new SISU configurator for the given BeanBag builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addClassLoader

      public void addClassLoader(ClassLoader classLoader, io.smallrye.beanbag.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, io.smallrye.beanbag.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, io.smallrye.beanbag.BeanBag.Builder builder, io.smallrye.beanbag.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(io.smallrye.beanbag.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)