@Immutable @ServiceSpecification @ServiceImplementation public class MBeanServerProvider extends LocatableProvider<MBeanServer>
MBeanServerLocator.SINGLETON.
If multiple provider services are locatable on the class path at run time, the service with the greatest priority gets selected.
The implementation in this class simply provides the platform MBean server.
| Constructor and Description |
|---|
MBeanServerProvider() |
| Modifier and Type | Method and Description |
|---|---|
MBeanServer |
get() |
int |
getPriority()
Returns a priority to help
Locators to prioritize this object. |
toStringpublic MBeanServer get()
public int getPriority()
Locators to prioritize this object.
The implementation in the class LocatableService returns zero.
If the runtime class of this object is
MBeanServerProvider, then -100 gets returned.
Otherwise, zero gets returned.
getPriority in class LocatableServiceLocators to prioritize this object.Copyright © 2012–2016 Schlichtherle IT Services. All rights reserved.