@ Override public void configure ( ) { bind ( Controller . class ) . to ( new AnnotationVisitorFactory ( ) { public AnnotationVisitor newAnnotationVisitor ( BindingContext context ) { return new WisdomControllerVisitor ( context . getWorkbench ( ) , context . getReporter ( ) ) ; } } ) ; bind ( Service . class ) . to ( new AnnotationVisitorFactory ( ) { public AnnotationVisitor newAnnotationVisitor ( BindingContext context ) { return new WisdomServiceVisitor ( context . getWorkbench ( ) , context . getReporter ( ) ) ; } } ) ; bind ( View . class ) . when ( on ( ElementType . FIELD ) ) . to ( new AnnotationVisitorFactory ( ) { public AnnotationVisitor newAnnotationVisitor ( BindingContext context ) { return new WisdomViewVisitor ( context . getWorkbench ( ) , context . getReporter ( ) , context . getFieldNode ( ) ) ; } } ) ; bind ( Model . class ) . when ( on ( ElementType . FIELD ) ) . to ( new AnnotationVisitorFactory ( ) { public AnnotationVisitor newAnnotationVisitor ( BindingContext context ) { return new WisdomModelVisitor ( context . getWorkbench ( ) , context . getReporter ( ) , context . getFieldNode ( ) ) ; } } ) ; }
Adds the Wisdom annotation to the iPOJO manipulator .