/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
/**
* The configuration defines the configuration of a server instance that can be
*/
/* @XmlType(name = "", propOrder = {
"httpService",
"iiopService",
"adminService",
"connectorService",
"webContainer",
"ejbContainer",
"mdbContainer",
"jmsService",
"logService",
"securityService",
"transactionService",
"monitoringService",
"diagnosticService",
"javaConfig",
"availabilityService",
"threadPools",
"alertService",
"groupManagementService",
"managementRules",
"systemProperty",
"property"
}) */
public interface Config extends ConfigBeanProxy, Injectable, Named, PropertyBag, SystemPropertyBag, Payload {
/**
* Name of the configured object
*
* @return name of the configured object
FIXME: should set 'key=true'. See bugs 6039, 6040
*/
/**
* Gets the value of the dynamicReconfigurationEnabled property.
*
* When set to "true" then any changes to the system (e.g. applications
* deployed, resources created) will be automatically applied to the
* affected servers without a restart being required. When set to
* "false" such changes will only be picked up by the affected servers
* when each server restarts.
*
* @return possible object is
* {@link String }
*/
/**
* Sets the value of the dynamicReconfigurationEnabled property.
*
* @param value allowed object is
* {@link String }
*/
/**
* Gets the value of the networkConfig property.
*
* @return possible object is {@link NetworkConfig }
*/
/**
* Sets the value of the networkConfig property.
*
* @param value allowed object is {@link NetworkConfig }
*/
/**
* Gets the value of the httpService property.
*
* @return possible object is
* {@link HttpService }
*/
/**
* Sets the value of the httpService property.
*
* @param value allowed object is
* {@link HttpService }
*/
/**
* Gets the value of the iiopService property.
*
* @return possible object is
* {@link IiopService }
*/
/**
* Sets the value of the iiopService property.
*
* @param value allowed object is
* {@link IiopService }
*/
/**
* Gets the value of the adminService property.
*
* @return possible object is
* {@link AdminService }
*/
/**
* Sets the value of the adminService property.
*
* @param value allowed object is
* {@link AdminService }
*/
/**
* Gets the value of the connectorService property.
*
* @return possible object is
* {@link ConnectorService }
*/
/**
* Sets the value of the connectorService property.
*
* @param value allowed object is
* {@link ConnectorService }
*/
/**
* Gets the value of the webContainer property.
*
* @return possible object is
* {@link WebContainer }
*/
/**
* Sets the value of the webContainer property.
*
* @param value allowed object is
* {@link WebContainer }
*/
/**
* Gets the value of the ejbContainer property.
*
* @return possible object is
* {@link EjbContainer }
*/
/**
* Sets the value of the ejbContainer property.
*
* @param value allowed object is
* {@link EjbContainer }
*/
/**
* Gets the value of the mdbContainer property.
*
* @return possible object is
* {@link MdbContainer }
*/
/**
* Sets the value of the mdbContainer property.
*
* @param value allowed object is
* {@link MdbContainer }
*/
/**
* Gets the value of the jmsService property.
*
* @return possible object is
* {@link JmsService }
*/
/**
* Sets the value of the jmsService property.
*
* @param value allowed object is
* {@link JmsService }
*/
/**
* Gets the value of the logService property.
*
* @return possible object is
* {@link LogService }
*/
/**
* Sets the value of the logService property.
*
* @param value allowed object is
* {@link LogService }
*/
/**
* Gets the value of the securityService property.
*
* @return possible object is
* {@link SecurityService }
*/
/**
* Sets the value of the securityService property.
*
* @param value allowed object is
* {@link SecurityService }
*/
/**
* Gets the value of the transactionService property.
*
* @return possible object is
* {@link TransactionService }
*/
/**
* Sets the value of the transactionService property.
*
* @param value allowed object is
* {@link TransactionService }
*/
/**
* Gets the value of the monitoringService property.
*
* @return possible object is
* {@link MonitoringService }
*/
/**
* Sets the value of the monitoringService property.
*
* @param value allowed object is
* {@link MonitoringService }
*/
/**
* Gets the value of the diagnosticService property.
*
* @return possible object is
* {@link DiagnosticService }
*/
/**
* Sets the value of the diagnosticService property.
*
* @param value allowed object is
* {@link DiagnosticService }
*/
/**
* Gets the value of the javaConfig property.
*
* @return possible object is
* {@link JavaConfig }
*/
/**
* Sets the value of the javaConfig property.
*
* @param value allowed object is
* {@link JavaConfig }
*/
/**
* Gets the value of the availabilityService property.
*
* @return possible object is
* {@link AvailabilityService }
*/
/**
* Sets the value of the availabilityService property.
*
* @param value allowed object is
* {@link AvailabilityService }
*/
/**
* Gets the value of the threadPools property.
*
* @return possible object is
* {@link ThreadPools }
*/
/**
* Sets the value of the threadPools property.
*
* @param value allowed object is
* {@link ThreadPools }
*/
/**
* Gets the value of the alertService property.
*
* @return possible object is
* {@link AlertService }
*/
/**
* Sets the value of the alertService property.
*
* @param value allowed object is
* {@link AlertService }
*/
/**
* Gets the value of the groupManagementService property.
*
* @return possible object is
* {@link GroupManagementService }
*/
/**
* Sets the value of the groupManagementService property.
*
* @param value allowed object is
* {@link GroupManagementService }
*/
/**
* Gets the value of the managementRules property.
*
* @return possible object is
* {@link ManagementRules }
*/
/**
* Sets the value of the managementRules property.
*
* @param value allowed object is
* {@link ManagementRules }
*/
/**
* Gets the value of the systemProperty property.
* <p/>
* <p/>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the systemProperty property.
* <p/>
* <p/>
* For example, to add a new item, do as follows:
* <pre>
* getSystemProperty().add(newItem);
* </pre>
* <p/>
* <p/>
* <p/>
* Objects of the following type(s) are allowed in the list
* {@link SystemProperty }
*/
systemProperties=true,
props={
}
)
//DuckTyped for accessing the logging.properties file
/**
* Return an extension configuration given the extension type.
*
* @param type type of the requested extension configuration
* @param <T> interface subclassing the ConfigExtension type
* @return a configuration proxy of type T or null if there is no such
* configuration with that type.
*/
class Duck {
try{
} catch (IOException ex){
}
return prop;
}
try {
} catch (IOException ex){
}
return map;
}
try {
} catch (IOException ex){
}
return map;
}
try {
} catch (Exception e) {
// ignore, not the right type.
}
}
return null;
}
return ServerHelper.getAdminListener(c);
}
}
/**
Properties as per {@link PropertyBag}
*/
@PropertiesDesc(props={})
/**
* Get the configuration for other types of containers.
*
* @return list of containers configuration
*/
@Element("*")
}