Package org.xwiki.component.annotation
Class ComponentDescriptorFactory
- java.lang.Object
-
- org.xwiki.component.annotation.ComponentDescriptorFactory
-
public class ComponentDescriptorFactory extends Object
Constructs a Component Descriptor out of a class definition that contains Annotations.- Since:
- 1.8.1
- Version:
- $Id: ecb5666e76f35d32322b08e7dec22c65c2547471 $
- See Also:
ComponentAnnotationLoader
-
-
Constructor Summary
Constructors Constructor Description ComponentDescriptorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> List<ComponentDescriptor<T>>
createComponentDescriptors(Class<? extends T> componentClass, Class<?> componentRoleClass)
Deprecated.since 4.0M1 usecreateComponentDescriptors(Class, Type)
instead<T> List<ComponentDescriptor<T>>
createComponentDescriptors(Class<? extends T> componentClass, Type componentRoleType)
Create component descriptors for the passed component implementation class and component role class.
-
-
-
Method Detail
-
createComponentDescriptors
@Deprecated public <T> List<ComponentDescriptor<T>> createComponentDescriptors(Class<? extends T> componentClass, Class<?> componentRoleClass)
Deprecated.since 4.0M1 usecreateComponentDescriptors(Class, Type)
insteadCreate component descriptors for the passed component implementation class and component role class. There can be more than one descriptor if the component class has specified several hints.- Type Parameters:
T
- the described class type- Parameters:
componentClass
- the component implementation classcomponentRoleClass
- the component role class- Returns:
- the component descriptors with resolved component dependencies
-
createComponentDescriptors
public <T> List<ComponentDescriptor<T>> createComponentDescriptors(Class<? extends T> componentClass, Type componentRoleType)
Create component descriptors for the passed component implementation class and component role class. There can be more than one descriptor if the component class has specified several hints.- Type Parameters:
T
- the described class type- Parameters:
componentClass
- the component implementation classcomponentRoleType
- the component role type- Returns:
- the component descriptors with resolved component dependencies
- Since:
- 4.0M1
-
-