Package com.qwazr.server
Interface GenericFactory<T>
- All Superinterfaces:
io.undertow.servlet.api.InstanceFactory<T>
- All Known Implementing Classes:
GenericFactory.FromConstructor
,GenericFactory.FromInstance
,GenericFactory.FromSupplier
public interface GenericFactory<T>
extends io.undertow.servlet.api.InstanceFactory<T>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GenericFactory.FromConstructor<T>
static class
GenericFactory.FromInstance<T>
static class
GenericFactory.FromSupplier<T>
-
Method Summary
Static Methods Modifier and Type Method Description static <T> GenericFactory<T>
fromConstructor(com.qwazr.utils.reflection.ConstructorParameters constructorParameters, java.lang.Class<T> clazz)
static <T> GenericFactory<T>
fromInstance(T instance)
static <T> GenericFactory<T>
fromSupplier(java.util.function.Supplier<T> supplier)
-
Method Details
-
fromInstance
-
fromSupplier
-
fromConstructor
static <T> GenericFactory<T> fromConstructor(com.qwazr.utils.reflection.ConstructorParameters constructorParameters, java.lang.Class<T> clazz)
-