use of com.sun.enterprise.admin.servermgmt.pe.PEDomainConfigValidator in project Payara by payara.
the class DomainBuilder method validateTemplate.
/**
* Validate's the template.
*
* @throws DomainException If any exception occurs in validation.
*/
public void validateTemplate() throws DomainException {
try {
// Sanity check on the repository.
RepositoryManager repoManager = new RepositoryManager();
repoManager.checkRepository(_domainConfig, false);
// Validate the port values.
DomainPortValidator portValidator = new DomainPortValidator(_domainConfig, _defaultPortValues);
portValidator.validateAndSetPorts();
// Validate other domain config parameters.
new PEDomainConfigValidator().validate(_domainConfig);
} catch (Exception ex) {
throw new DomainException(ex);
}
}
Aggregations