JSF-Spring

de.mindmatters.faces.spring.factory
Class OrderedRootBeanDefinition

java.lang.Object
  extended by org.springframework.core.AttributeAccessorSupport
      extended by org.springframework.beans.factory.support.AbstractBeanDefinition
          extended by org.springframework.beans.factory.support.RootBeanDefinition
              extended by de.mindmatters.faces.spring.factory.OrderedRootBeanDefinition
All Implemented Interfaces:
java.io.Serializable, BeanMetadataElement, BeanDefinition, AttributeAccessor, Ordered

public final class OrderedRootBeanDefinition
extends RootBeanDefinition
implements Ordered

A RootBeanDefinition which could be ordered.

Can be useful if post processors need to gain and order bean definitions from a given BeanFactory (e.g. to create beans in a dedicated order).

Author:
Andreas Kuhrwahl
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, DEPENDENCY_CHECK_ALL, DEPENDENCY_CHECK_NONE, DEPENDENCY_CHECK_OBJECTS, DEPENDENCY_CHECK_SIMPLE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Fields inherited from interface org.springframework.beans.factory.config.BeanDefinition
ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON
 
Constructor Summary
OrderedRootBeanDefinition(RootBeanDefinition original, int order)
          Creates an instance based upon the given RootBeanDefinition original.
 
Method Summary
 int getOrder()
          Return the order value of this object, with a higher value meaning greater in terms of sorting.
 
Methods inherited from class org.springframework.beans.factory.support.RootBeanDefinition
equals, toString
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getMethodOverrides, getPropertyValues, getResolvedAutowireMode, getResourceDescription, getRole, getScope, getSource, hasBeanClass, hasConstructorArgumentValues, hashCode, isAbstract, isAutowireCandidate, isEnforceDestroyMethod, isEnforceInitMethod, isLazyInit, isPrototype, isSingleton, isSynthetic, overrideFrom, prepareMethodOverride, prepareMethodOverrides, resolveBeanClass, setAbstract, setAutowireCandidate, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDestroyMethodName, setEnforceDestroyMethod, setEnforceInitMethod, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setLazyInit, setMethodOverrides, setPropertyValues, setResourceDescription, setRole, setScope, setSingleton, setSource, setSynthetic, validate
 
Methods inherited from class org.springframework.core.AttributeAccessorSupport
attributeNames, copyAttributesFrom, getAttribute, hasAttribute, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.core.AttributeAccessor
attributeNames, getAttribute, hasAttribute, removeAttribute, setAttribute
 

Constructor Detail

OrderedRootBeanDefinition

public OrderedRootBeanDefinition(RootBeanDefinition original,
                                 int order)
Creates an instance based upon the given RootBeanDefinition original.

Parameters:
original - The RootBeanDefinition
order - The order of this defintion
Method Detail

getOrder

public 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