FileDocCategorySizeDatePackage
OfflineLoader.javaAPI DocGlassfish v2 API3761Fri May 04 22:23:40 BST 2007com.sun.enterprise.management.offline

OfflineLoader

public final class OfflineLoader extends com.sun.enterprise.management.support.MBeanImplBase implements OfflineLoaderMBean
Implements loading of all MBean API MBeans.

Fields Summary
private final File
mDomainXML
final MBeanServer
mServer
final ConfigDelegateFactory
mDelegateFactory
private final AMXLoader
mAMXLoader
Constructors Summary
public OfflineLoader(MBeanServer server, File domainXML)

	    mServer     = server;
	    mDomainXML  = domainXML;
	    
	    final boolean   offline = true;
		BootUtil.init( offline );
		
		try
		{
		    mDelegateFactory    = ConfigDelegateFactory.getInstance( mDomainXML );
		    mAMXLoader  = new AMXLoader( mServer, mDelegateFactory );
		}
		catch( Exception e )
		{
		    e.printStackTrace();
		    throw new RuntimeException( e );
		}
		
		
		start();
	
Methods Summary
protected java.util.logging.LoggercreateLogger()

	    return Logger.getLogger( this.getClass().getName() ) ;
	
public java.lang.StringgetAMXJMXDomainName()

		return( BootUtil.getInstance().getAMXJMXDomainName() );
	
public java.lang.StringgetAdministrativeDomainName()

		return( BootUtil.getInstance().getAppserverDomainName() );
	
protected java.lang.StringgetDebugID()

	    return( "OfflineLoader" );
	
protected voidsdebug(java.lang.Object o)

	    debug( o );
	    System.out.println( "" + o );
	
private voidstart()

		try
		{
		    mAMXLoader.loadAll();
		}
		catch( Exception e )
		{
		    e.printStackTrace();
		    throw new RuntimeException( e );
		}
		
        BootUtil.getInstance().setAMXReady( true );