Interface ComponentDescriptorFactory
-
public interface ComponentDescriptorFactoryFactory to create newSimpleComponentDescriptorinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> ComponentDescriptor<T>make(String componentName, Class<T> componentType, Supplier<T> componentSupplier, boolean isSingleton)Makes a newSimpleComponentDescriptorinstance.
-
-
-
Method Detail
-
make
<T> ComponentDescriptor<T> make(String componentName, Class<T> componentType, Supplier<T> componentSupplier, boolean isSingleton)
Makes a newSimpleComponentDescriptorinstance.- Parameters:
componentName- the name of the component (can benull.componentType- the type of the component.componentSupplier- the supplier of the component.isSingleton- is the component singleton.- Returns:
- a new instance of
ComponentDescriptor. - Throws:
ComponentRegistrationException- if an exception occurred while building the descriptor.
-
-