Search in sources :

Example 1 with Component

use of com.sun.enterprise.admin.servermgmt.xml.stringsubs.Component in project Payara by payara.

the class StringSubstitutionEngine method substituteComponents.

@Override
public void substituteComponents(List<String> components) throws StringSubstitutionException {
    if (!isValid(components)) {
        throw new StringSubstitutionException(_strings.get("missingComponentIdentifiers"));
    }
    for (String componentId : components) {
        Component component = findComponentById(componentId);
        if (component == null) {
            _logger.log(Level.INFO, SLogger.MISSING_COMPONENT, componentId);
            continue;
        }
        doSubstitution(component);
    }
}
Also used : StringSubstitutionException(com.sun.enterprise.admin.servermgmt.stringsubs.StringSubstitutionException) Component(com.sun.enterprise.admin.servermgmt.xml.stringsubs.Component)

Aggregations

StringSubstitutionException (com.sun.enterprise.admin.servermgmt.stringsubs.StringSubstitutionException)1 Component (com.sun.enterprise.admin.servermgmt.xml.stringsubs.Component)1