private void addCallback ( BeanMessageID type , Callback < ? > callback ) { List < Callback < ? > > callbacks = beanCallbacks . get ( type ) ; if ( callbacks == null ) { callbacks = new ArrayList <> ( 16 ) ; beanCallbacks . put ( type , callbacks ) ; } callbacks . add ( callback ) ; }
Add a callback for a Bean message type .