org.xwiki.component.annotation
Class ComponentDeclaration

java.lang.Object
  extended by 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$

Constructor Summary
ComponentDeclaration(String implementationClassName, int priority)
           
 
Method Summary
 boolean equals(Object object)
           
 String getImplementationClassName()
           
 int getPriority()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentDeclaration

public ComponentDeclaration(String implementationClassName,
                            int priority)
Parameters:
implementationClassName - see getImplementationClassName()
priority - see getPriority()
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

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2012 XWiki. All Rights Reserved.