Class < ? > loadClass ( String name ) throws ClassNotFoundException { // First, try to find the class by name. ServiceReference < DeserializationClassProvider > provider = classProviders . getReference ( name ) ; if ( provider != null ) { return loadClass ( provider , name ) ; } // Next, try to find the class by package. int index = name . lastIndexOf ( ' ' ) ; if ( index != - 1 ) { String pkg = name . substring ( 0 , index ) ; provider = packageProviders . getReference ( pkg ) ; if ( provider != null ) { return loadClass ( provider , name ) ; } } return null ; }
Attempts to resolve a class from registered class providers .