org.glassfish.admin.mbeanserver
Class MBeanServerFactory
java.lang.Object
org.glassfish.admin.mbeanserver.MBeanServerFactory
- All Implemented Interfaces:
- PostStartup, org.jvnet.hk2.component.Factory
@Service
@FactoryFor(value=javax.management.MBeanServer.class)
public final class MBeanServerFactory
- extends Object
- implements org.jvnet.hk2.component.Factory, PostStartup
Factory for the MBeanServer. Required so that HK2 can find an MBeanServer
for modules doing @Inject MBeanServer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanServerFactory
public MBeanServerFactory()
postConstruct
public void postConstruct()
getObject
public Object getObject()
throws org.jvnet.hk2.component.ComponentException
- The system calls this method to obtain a reference
to the component.
- Specified by:
getObject in interface org.jvnet.hk2.component.Factory
- Returns:
- null is a valid return value. This is useful
when a factory primarily does a look-up and it fails
to find the specified component, yet you don't want that
by itself to be an error. If the injection wants
a non-null value (i.e., @Inject(optional=false)).
- Throws:
org.jvnet.hk2.component.ComponentException - If the factory failed to get/create an instance
and would like to propagate the error to the caller.
Copyright © 2012 GlassFish Community. All Rights Reserved.