protected void registerInstanceFactory ( InstanceType instanceType , InstanceFactory instanceFactory ) { log . debug ( "Register instance factory |%s| to |%s|." , instanceFactory . getClass ( ) , instanceType ) ; if ( instanceFactories . put ( instanceType , instanceFactory ) != null ) { throw new BugError ( "Attempt to override instance type |%s|." , instanceType ) ; } }
Register instance factory to requested instance type .