Package io.smallrye.beanbag.sisu
Class Sisu
- java.lang.Object
-
- io.smallrye.beanbag.sisu.Sisu
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddClass(Class<T> clazz, DependencyFilter filter)Add the given class as a SISU item.voidaddClassLoader(ClassLoader classLoader, DependencyFilter filter)Scan the given class loader for additional SISU items.static voidconfigureSisu(ClassLoader classLoader, BeanBag.Builder builder, DependencyFilter filter)Perform SISU configuration on the given builder.static SisucreateFor(BeanBag.Builder builder)Create a new SISU configurator for the given BeanBag builder.
-
-
-
Method Detail
-
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 benull)filter- the dependency filter to apply (must not benull)
-
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 benull)filter- the dependency filter to apply (must not benull)
-
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 benull)builder- the container builder to configure (must not benull)filter- a filter to apply to all SISU dependency resolutions (must not benull)
-
createFor
public static Sisu createFor(BeanBag.Builder builder)
Create a new SISU configurator for the given BeanBag builder.- Parameters:
builder- the builder (must not benull)- Returns:
- the new SISU configurator (not
null)
-
-