FileDocCategorySizeDatePackage
ProfilerConfigImpl.javaAPI DocGlassfish v2 API3312Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

ProfilerConfigImpl

public final class ProfilerConfigImpl extends com.sun.enterprise.management.config.AMXConfigImplBase
Configuration for the <profiler> element.

Fields Summary
final com.sun.enterprise.management.support.Delegate
mUnwrappedDelegate
Constructors Summary
public ProfilerConfigImpl(com.sun.enterprise.management.support.Delegate delegate)

		super( delegate );
        
        mUnwrappedDelegate    = delegate;
	
Methods Summary
protected javax.management.ObjectNamepreRegisterModifyName(javax.management.MBeanServer server, javax.management.ObjectName nameIn)

        final ObjectName objectName = super.preRegisterModifyName( server, nameIn );
       
        ObjectName actualObjectName = null;
        try
        {
            final String name = (String)mUnwrappedDelegate.getAttribute( "name" );
            
            actualObjectName   = JMXUtil.setKeyProperty( objectName, NAME_KEY, name );
        }
        catch( AttributeNotFoundException e )
        {
            throw new RuntimeException(e);
        }
        
        
        return actualObjectName;