| java.lang.Object org.acegisecurity.util.OrderedUtils
OrderedUtils | abstract public class OrderedUtils (Code) | | Proivdes common logic for manipulating classes implementing the Spring
Ordered interface.
author: Ben Alex author: Vishal Puri |
Method Summary | |
public static boolean | copyOrderFromOtherClass(Class sourceClass, ApplicationContext applicationContext, Object destinationObject, boolean skipIfMoreThanOneCandidateSourceClassInstance) Introspects the application context for a single instance of sourceClass . | public static void | copyOrderFromOtherObject(Ordered sourceObject, Object destinationObject) Copies the order property from the sourceObject into the destinationObject . |
copyOrderFromOtherClass | public static boolean copyOrderFromOtherClass(Class sourceClass, ApplicationContext applicationContext, Object destinationObject, boolean skipIfMoreThanOneCandidateSourceClassInstance)(Code) | | Introspects the application context for a single instance of sourceClass . If found, the order from the source
class instance is copied into the destinationObject . If more than one instance of sourceClass
is found, the method throws IllegalStateException .
The destinationObject is required to provide a public setOrder(int) method to permit
mutation of the order property.
Parameters: sourceClass - to locate in the application context (must be assignable to Ordered) Parameters: applicationContext - to locate the class Parameters: destinationObject - to copy the order into (must provide public setOrder(int) method) Parameters: skipIfMoreThanOneCandidateSourceClassInstance - if the application context provides more than one potential source, skip modifications (if false, the first located matching source will be used) whether or not the destination class was updated |
copyOrderFromOtherObject | public static void copyOrderFromOtherObject(Ordered sourceObject, Object destinationObject)(Code) | | Copies the order property from the sourceObject into the destinationObject .
The destinationObject is required to provide a public setOrder(int) method to permit
mutation of the order property.
Parameters: sourceObject - to copy the order from Parameters: destinationObject - to copy the order into (must provide public setOrder(int) method) |
|
|