protected < T > Class < T > getType ( String typeName ) throws PluginRepositoryException { try { return ( Class < T > ) classLoader . loadClass ( typeName . trim ( ) ) ; } catch ( ClassNotFoundException | LinkageError e ) { // Catching class loader related errors for logging a message which plugin class // actually caused the problem. throw new PluginRepositoryException ( "Cannot find or load class " + typeName , e ) ; } }
Get the class for the given type name .