|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.util.OrderedUtils
public abstract class OrderedUtils
Proivdes common logic for manipulating classes implementing the Spring
Ordered interface.
| Constructor Summary | |
|---|---|
OrderedUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
copyOrderFromOtherClass(Class sourceClass,
ApplicationContext applicationContext,
Object destinationObject,
boolean skipIfMoreThanOneCandidateSourceClassInstance)
Introspects the application context for a single instance of sourceClass. |
static void |
copyOrderFromOtherObject(Ordered sourceObject,
Object destinationObject)
Copies the order property from the sourceObject into the destinationObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderedUtils()
| Method Detail |
|---|
public static boolean copyOrderFromOtherClass(Class sourceClass,
ApplicationContext applicationContext,
Object destinationObject,
boolean skipIfMoreThanOneCandidateSourceClassInstance)
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.
sourceClass - to locate in the application context (must be assignable to Ordered)applicationContext - to locate the classdestinationObject - to copy the order into (must provide public setOrder(int) method)skipIfMoreThanOneCandidateSourceClassInstance - if the application context provides more than one potential source, skip modifications (if false, the first located matching source will be used)
public static void copyOrderFromOtherObject(Ordered sourceObject,
Object destinationObject)
sourceObject into the destinationObject.
The destinationObject is required to provide a public setOrder(int) method to permit
mutation of the order property.
sourceObject - to copy the order fromdestinationObject - to copy the order into (must provide public setOrder(int) method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||