public final class ServiceUtils extends Object
| Constructor and Description |
|---|
ServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initialize(Collection<?> services)
Initializes a collection of services.
|
static void |
release(Collection<?> services)
Releases (finalizes) a collection of services.
|
static void |
sortByPriority(List<?> services)
Sorts a given list containing services by their priority.
|
public static void sortByPriority(List<?> services)
Sorts a given list containing services by their priority.
By default, each service has priority 0. A developer can re-define the priority by implementing
Prioritizable.getPriority() method.
services - list of servicespublic static void initialize(Collection<?> services)
Initializes a collection of services.
Only services which implements Initializable will be initialized. A rest of services will stay untouched.
services - a collection of servicespublic static void release(Collection<?> services)
Releases (finalizes) a collection of services.
Only services which implements Initializable will be released. A rest of services will stay untouched.
services - a collection of servicesCopyright © 2014 JBoss by Red Hat. All Rights Reserved.