Package org.xwiki.component.annotation
Class ComponentDeclaration
- java.lang.Object
-
- org.xwiki.component.annotation.ComponentDeclaration
-
public class ComponentDeclaration extends Object
Represents a Component declaration (i.e. component implementation class name and component priority).- Since:
- 3.3M1
- Version:
- $Id: d038233916a5a575e3c0499a402431ce9e267d7e $
-
-
Constructor Summary
Constructors Constructor Description ComponentDeclaration(String implementationClassName)
ComponentDeclaration(String implementationClassName, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getImplementationClassName()
int
getPriority()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ComponentDeclaration
public ComponentDeclaration(String implementationClassName)
- Parameters:
implementationClassName
- seegetImplementationClassName()
- Since:
- 4.2M1
-
ComponentDeclaration
public ComponentDeclaration(String implementationClassName, int priority)
- Parameters:
implementationClassName
- seegetImplementationClassName()
priority
- seegetPriority()
-
-
Method Detail
-
getPriority
public int getPriority()
- Returns:
- the priority this component declaration has (when several components are registered for the same Role and Hint the priority is used to decide which one gets registered - the lowest value wins)
-
getImplementationClassName
public String getImplementationClassName()
- Returns:
- the component implementation class name for the declared component
-
-