FileDocCategorySizeDatePackage
ConfigTarget.javaAPI DocGlassfish v2 API4886Fri May 04 22:34:08 BST 2007com.sun.enterprise.admin.target

ConfigTarget

public class ConfigTarget extends Target

Fields Summary
private static final com.sun.enterprise.util.i18n.StringManager
strMgr
Constructors Summary
protected ConfigTarget(String name, com.sun.enterprise.config.ConfigContext cc)


        
    
        super(name, cc);
    
Methods Summary
public com.sun.enterprise.config.serverbeans.ApplicationRef[]getApplicationRefs()

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getApplicationRefs", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.Cluster[]getClusters()
Return all the clusters referencing this config

        return ClusterHelper.getClustersReferencingConfig(getConfigContext(), getName());
    
public java.lang.StringgetConfigRef()

        return getName();
    
public com.sun.enterprise.admin.target.ConfigTargetgetConfigTarget()

        return this;
    
public com.sun.enterprise.config.serverbeans.Config[]getConfigs()
Return the configuration

        Config[] configs = new Config[1];
        configs[0] = ConfigAPIHelper.getConfigByName(getConfigContext(), getName());
        return configs;
    
public com.sun.enterprise.config.serverbeans.NodeAgent[]getNodeAgents()

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getNodeAgents", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.ResourceRef[]getResourceRefs()

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getResourceRefs", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.Server[]getServers()
Return all the servers in referencing this config

        return ServerHelper.getServersReferencingConfig(getConfigContext(), getName());
    
public java.lang.StringgetTargetObjectName(java.lang.String[] tokens)

        checkTokens(tokens, 1);
        return (tokens[0] + ":type=config,category=config,name=" + getName());
    
public TargetTypegetType()

        return TargetType.CONFIG;