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: d1339a364913ace6bf1b87865b61ab8de1435630 $
ComponentDeclaration
public ComponentDeclaration(String implementationClassName)
- Parameters:
implementationClassName - see getImplementationClassName()- Since:
- 4.2M1
ComponentDeclaration
public ComponentDeclaration(String implementationClassName,
int priority)
- Parameters:
implementationClassName - see getImplementationClassName()priority - see getPriority()
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
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2013 XWiki. All Rights Reserved.