Interface ComponentClassReader
-
- All Known Implementing Classes:
DefaultProviderClassReader
public interface ComponentClassReader
TheComponentClassReader
serves as a proxy interface for registering components toComponentRegistry
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> void
addDescriptorFactoryForType(Class<T> type, ComponentDescriptorFactory<T> factory)
Add a descriptor factory to this reader.<T> void
registerComponent(ComponentFactory<T> componentFactory, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.<T> void
registerComponent(Class<T> componentClass, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.void
registerComponent(String componentClassName, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.
-
-
-
Method Detail
-
addDescriptorFactoryForType
<T> void addDescriptorFactoryForType(Class<T> type, ComponentDescriptorFactory<T> factory)
Add a descriptor factory to this reader.- Parameters:
type
- the typefactory
- theComponentDescriptorFactory
instance.
-
registerComponent
void registerComponent(String componentClassName, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.- Parameters:
componentClassName
- the component class name to be read and register.registry
- theComponentRegistry
instance to be used.
-
registerComponent
<T> void registerComponent(Class<T> componentClass, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.- Type Parameters:
T
- the component-type.- Parameters:
componentClass
- the component class to be read and register.registry
- theComponentRegistry
instance to be used.
-
registerComponent
<T> void registerComponent(ComponentFactory<T> componentFactory, ComponentRegistry registry)
Registers theProvider
class using the specifiedComponentRegistry
.- Type Parameters:
T
- the component-type.- Parameters:
componentFactory
- theComponentFactory
instance to be used.registry
- theComponentRegistry
instance to be used.
-
-