JSF-Spring

de.mindmatters.faces.spring.factory
Class OrderedBeanDefinitionHolder

java.lang.Object
  extended by de.mindmatters.faces.spring.factory.OrderedBeanDefinitionHolder
All Implemented Interfaces:
Ordered

public class OrderedBeanDefinitionHolder
extends java.lang.Object
implements Ordered

Ordered holder for a BeanDefinition with name and aliases.

Note: For further information please have a look at BeanDefinitionHolder.

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
OrderedBeanDefinitionHolder(BeanDefinition beanDefinition, java.lang.String beanName)
          Creates an ordered holder.
 
Method Summary
 BeanDefinition getBeanDefinition()
           
 java.lang.String getBeanName()
           
 int getOrder()
          Return the order value of this object, with a higher value meaning greater in terms of sorting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedBeanDefinitionHolder

public OrderedBeanDefinitionHolder(BeanDefinition beanDefinition,
                                   java.lang.String beanName)
Creates an ordered holder.

Parameters:
beanDefinition - The bean definiotn to hold.
beanName - The name of the bean.
Method Detail

getBeanDefinition

public final BeanDefinition getBeanDefinition()
Returns:
The BeanDefinition

getBeanName

public final java.lang.String getBeanName()
Returns:
The name of the bean.

getOrder

public final int getOrder()
Return the order value of this object, with a higher value meaning greater in terms of sorting.

Normally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE indicating greatest. Same order values will result in arbitrary positions for the affected objects.

Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).

Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.

Specified by:
getOrder in interface Ordered
Returns:
the order value
See Also:
Ordered.LOWEST_PRECEDENCE

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG