protected void registerClassProcessor ( ClassProcessor classProcessor ) { for ( ClassProcessor existingClassProcessoor : classProcessors ) { if ( existingClassProcessoor . getClass ( ) . equals ( classProcessor . getClass ( ) ) ) { throw new BugError ( "Attempt to override class processor |%s|." , classProcessor . getClass ( ) ) ; } } log . debug ( "Register class processor |%s|." , classProcessor . getClass ( ) ) ; classProcessors . add ( classProcessor ) ; }
Register global processors for managed classes . Post - processors are singletons and only one post - processor instance of a type is allowed .