in geronimo-connector/src/main/java/org/apache/geronimo/connector/AdminObjectWrapper.java [83:100]
public void doStart() throws Exception {
// if we have a validator factory at this point, then validate
// the resource adaptor instance
if (validatorFactory != null) {
Validator validator = validatorFactory.getValidator();
Set generalSet = validator.validate(adminObject);
if (!generalSet.isEmpty()) {
throw new ConstraintViolationException("Constraint violation for AdminObject " + adminObjectClass, generalSet);
}
}
if (adminObject instanceof ResourceAdapterAssociation) {
if (resourceAdapterWrapper == null) {
throw new IllegalStateException("Admin object expects to be registered with a ResourceAdapter, but there is no ResourceAdapter");
}
resourceAdapterWrapper.registerResourceAdapterAssociation((ResourceAdapterAssociation) adminObject);
}
}