org.glassfish.admin.mbeanserver
Class MBeanServerFactory
java.lang.Object
org.glassfish.admin.mbeanserver.MBeanServerFactory
- All Implemented Interfaces:
- org.glassfish.hk2.Factory
@Service
@FactoryFor(value=javax.management.MBeanServer.class)
public final class MBeanServerFactory
- extends Object
- implements org.jvnet.hk2.component.Factory
Factory for the MBeanServer. Required so that HK2 can find an MBeanServer
for modules doing @Inject MBeanServer.
|
Method Summary |
Object |
get()
The system calls this method to obtain a reference
to the component. |
void |
postConstruct()
|
| 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()
get
public Object get()
throws org.jvnet.hk2.component.ComponentException
- The system calls this method to obtain a reference
to the component.
- Specified by:
get in interface org.glassfish.hk2.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. All Rights Reserved.