protected void registerInstanceProcessor ( InstanceProcessor instanceProcessor ) { for ( InstanceProcessor existingInstanceProcessoor : instanceProcessors ) { if ( existingInstanceProcessoor . getClass ( ) . equals ( instanceProcessor . getClass ( ) ) ) { throw new BugError ( "Attempt to override instance processor |%s|." , instanceProcessor . getClass ( ) ) ; } } log . debug ( "Register instance processor |%s|." , instanceProcessor . getClass ( ) ) ; instanceProcessors . add ( instanceProcessor ) ; }
Register instance processor . Only a single instance per processor class is allowed .