public synchronized void registerComponent ( String _string ) { if ( isIncluded ( _string ) ) { Class < ? > dummy ; try { dummy = Class . forName ( _string ) ; String classVersion = getVersionWithReflection ( dummy ) ; if ( classVersion != null ) { componentVersions . put ( _string , classVersion ) ; } } catch ( ClassNotFoundException ex ) { logger . trace ( "Unable to call getVersion on " + _string ) ; } } }
Register a component with FQCN only . This method will try to get the class version using reflections!