public DestroyProcessor(AssemblyFactory factory) {
super(factory);
}
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("Destructor must not have argments", method);