public class SpringLifecycleObjectSorter extends DefaultLifecycleObjectSorter
DefaultLifecycleObjectSorter which uses a SpringRegistry
to not only consider the provided objects but the beans on which that object depends on. This is
accomplished by introspecting the BeanDefinition that was derived from the Inject annotationsorderedLifecycleTypes| Constructor and Description |
|---|
SpringLifecycleObjectSorter(Class<?>[] orderedLifecycleTypes,
SpringRegistry registry)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
doAddObject(String name,
Object object,
List<Object> bucket)
Adds all the dependencies of the given
object first, and the actual object last
|
addObject, getSortedObjectspublic SpringLifecycleObjectSorter(Class<?>[] orderedLifecycleTypes, SpringRegistry registry)
orderedLifecycleTypes - an ordered array specifying a type based orderregistry - a SpringRegistryprotected int doAddObject(String name, Object object, List<Object> bucket)
object first, and the actual object last
doAddObject in class DefaultLifecycleObjectSorterCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.