Package io.smallrye.beanbag.sisu
Class Sisu
java.lang.Object
io.smallrye.beanbag.sisu.Sisu
A utility which can configure a
BeanBag using Eclipse SISU resources and annotations.-
Method Summary
Modifier and TypeMethodDescription<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 Details
-
addClassLoader
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
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
Create a new SISU configurator for the given BeanBag builder.- Parameters:
builder- the builder (must not benull)- Returns:
- the new SISU configurator (not
null)
-