FileDocCategorySizeDatePackage
DomainConfigImpl.javaAPI DocGlassfish v2 API5588Mon Jul 23 10:50:04 BST 2007com.sun.enterprise.management.config

DomainConfigImpl

public final class DomainConfigImpl extends com.sun.enterprise.management.config.AMXConfigImplBase implements ConfigFactoryCallback

Fields Summary
private static final Set
NOT_SUPERFLUOUS
private static final Map
SPECIAL_CASE_DEFAULT_ATTRIBUTES
Constructors Summary
public DomainConfigImpl(com.sun.enterprise.management.support.Delegate delegate)

		super( delegate );
	
Methods Summary
public java.util.MapgetDefaultAttributeValues(java.lang.String j2eeType)

    
         
        
    
        String com_sun_appservType = SPECIAL_CASE_DEFAULT_ATTRIBUTES.get( j2eeType );
        if ( com_sun_appservType == null )
        {
            // not a special case, use the usual mappings
            com_sun_appservType = OldConfigTypes.getInstance().j2eeTypeToOldType( j2eeType );
            debug( "j2eeType = " + j2eeType + ", com_sun_appservType = " + com_sun_appservType );
        }
        
        final OldDomainMBean  d = getOldConfigProxies().getOldDomainMBean();
        final List<Attribute> oldAttrs = TypeCast.asList( 
            d.getDefaultAttributeValues( com_sun_appservType, (String[])null ) );
        
        Map<String,String>    results = Collections.emptyMap();
        if ( oldAttrs != null && oldAttrs.size() != 0)
        {
            results = new HashMap<String,String>();
            
            for( final Attribute attr : oldAttrs )
            {
                final String name    = attr.getName();
                final String value   = (String)attr.getValue();
                results.put( name, value );
            }
        }
        return results;
    
protected final java.util.SetgetNotSuperfluousMethods()

            
	      
	
	
	    return GSetUtil.newSet( super.getNotSuperfluousMethods(), NOT_SUPERFLUOUS );
	
public java.util.MapgetServerConfigObjectNameMap()

		final Map<String,StandaloneServerConfig> m1	=
		    ((DomainConfig)getSelf()).getStandaloneServerConfigMap();
		final Map<String,ClusteredServerConfig> m2	=
		    ((DomainConfig)getSelf()).getClusteredServerConfigMap();
		
		final Map<String,ObjectName> allObjectNames   = Util.toObjectNames( m1 );
		allObjectNames.putAll( Util.toObjectNames( m2 ) );

        return allObjectNames;