Methods Summary |
---|
private final com.sun.enterprise.config.serverbeans.ConnectorConnectionPool | getConnectorConnectionPool(com.sun.enterprise.config.ConfigContextEvent cce)
return (ConnectorConnectionPool) cce.getValidationTarget();
|
public com.sun.enterprise.config.serverbeans.validation.Result | validate(com.sun.enterprise.config.ConfigContextEvent cce)
Result result = super.validate(cce); // Before doing custom validation do basic validation
String choice = cce.getChoice();
if(choice.equals(StaticTest.UPDATE)) {
validateAttribute(cce.getName(), (String) cce.getObject(), result);
}
return result;
|
public void | validateAttribute(java.lang.String name, java.lang.String value, com.sun.enterprise.config.serverbeans.validation.Result result)
if(value == null || value.equals(""))
return;
if(name.equals(ServerTags.CONNECTION_DEFINITION_NAME)) {
}
|
public void | validateAttribute(java.lang.String name, java.lang.String value, java.lang.String rarName, com.sun.enterprise.config.serverbeans.validation.Result result)
try {
String connDefnNames[] = ConnectorRuntime.getRuntime().getConnectionDefinitionNames(rarName);
boolean available = false;
for(int i=0;i<connDefnNames.length;i++) {
if(value.equals(connDefnNames[i])) {
available = true;
break;
}
}
if(!available)
result.failed(smh.getLocalString(getClass().getName() + ".connDefnNotAvl",
"Attribute(conndefn={0}) : Invalid Connection Definition Name", new Object[]{value}));
} catch(Exception e) {
_logger.log(Level.FINE, "domainxmlverifier.exception", e);
}
|