super(registry);
}
@Override
public void visitMethod(Method method, JavaImplementation type) throws IntrospectionException {
Destroy annotation = method.getAnnotation(Destroy.class);
if (annotation == null) {
return;
}
if (method.getParameterTypes().length != 0) {
throw new IllegalDestructorException("[JCA90004] Destructor must not have arguments", method);