@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
Locator s to prioritize this object. |
toString
public MBeanServer get()
public int getPriority()
Locator
s 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 LocatableService
Locator
s to prioritize this object.Copyright © 2012–2018 Schlichtherle IT Services. All rights reserved.