Interface ComponentDescriptorFactory
-
- All Known Implementing Classes:
DefaultComponentDescriptorFactory
public interface ComponentDescriptorFactory
Factory to create newSimpleComponentDescriptor
instance.
-
-
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 newSimpleComponentDescriptor
instance.
-
-
-
Method Detail
-
make
<T> ComponentDescriptor<T> make(String componentName, Class<T> componentType, Supplier<T> componentSupplier, boolean isSingleton)
Makes a newSimpleComponentDescriptor
instance.- 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.
-
-