Top Description Fields Constructors Methods
org.glassfish.gmbal

public final Class ManagedObjectManagerFactory

extends Object
Class Inheritance
Imports
java.util.ServiceLoader, javax.management.ObjectName

Factory used to create ManagedObjectManager instances.

Note that the first access to this class sparks the search of the ManagedObjectManagerService using ServiceLoader and a class loader of the current thread.

Field Summary

Modifier and TypeField and Description
private static final ManagedObjectManagerService

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ManagedObjectManager
createFederated(final ObjectName
The JMX ObjectName of the parent of the root. The parent is outside of the control of this ManagedObjectManager. The ManagedObjectManager root is a child of the MBean identified by the rootParentName.
rootParentName
)

Create a new ManagedObjectManager.

public static ManagedObjectManager

Returns:

ManagedObjectManager that performs no operations.
createNOOP
()

Useful to allow the same code to run without creating MBeans through gmbal.

public static ManagedObjectManager
createStandalone(final String
The domain to use for all ObjectNames created when MBeans are registered.
domain
)

Create a new ManagedObjectManager.

public static boolean

Returns:

true if the service loader was able to find a factory.
isAvailable
()

Checks if the service was detected and is available.

private static ManagedObjectManagerService
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MOM_SERVICEback to summary
private static final ManagedObjectManagerService MOM_SERVICE

Constructor Detail

ManagedObjectManagerFactoryback to summary
private ManagedObjectManagerFactory()

Method Detail

createFederatedback to summary
public static ManagedObjectManager createFederated(final ObjectName rootParentName)

Create a new ManagedObjectManager. Alternative form of the create method to be used when the rootName is not needed explicitly. If the root name is available from an @ObjectNameKey annotation, it is used; otherwise the type is used as the name, since the root is a singleton.

Parameters
rootParentName:ObjectName

The JMX ObjectName of the parent of the root. The parent is outside of the control of this ManagedObjectManager. The ManagedObjectManager root is a child of the MBean identified by the rootParentName.

Returns:ManagedObjectManager

ManagedObjectManager.

createNOOPback to summary
public static ManagedObjectManager createNOOP()

Useful to allow the same code to run without creating MBeans through gmbal.

Returns:ManagedObjectManager

ManagedObjectManager that performs no operations.

createStandaloneback to summary
public static ManagedObjectManager createStandalone(final String domain)

Create a new ManagedObjectManager. All object names created will share the domain value passed on this call. This ManagedObjectManager is at the top of the containment hierarchy - the parent of the root is null.

Parameters
domain:String

The domain to use for all ObjectNames created when MBeans are registered.

Returns:ManagedObjectManager

ManagedObjectManager

isAvailableback to summary
public static boolean isAvailable()

Checks if the service was detected and is available. If not, methods createFederated(ObjectName) and createStandalone(String) will throw IllegalStateException.

Returns:boolean

true if the service loader was able to find a factory.

provideMomServiceback to summary
private static ManagedObjectManagerService provideMomService()