Tabnine Logo
Reflection.loadClass
Code IndexAdd Tabnine to your IDE (free)

How to use
loadClass
method
in
cascading.lingual.util.Reflection

Best Java code snippets using cascading.lingual.util.Reflection.loadClass (Showing top 4 results out of 315)

origin: cascading/lingual-core

public static Class<?> loadClassSafe( String typeString )
 {
 try
  {
  return loadClass( typeString );
  }
 catch( Exception exception )
  {
  return null;
  }
 }
origin: cascading/lingual-core

public static Object invokeStaticMethod( ClassLoader loader, String typeString, String methodName, Object[] parameters, Class[] parameterTypes )
 {
 Class type = loadClass( loader, typeString );
 return invokeStaticMethod( type, methodName, parameters, parameterTypes );
 }
origin: cascading/lingual-core

public static Class<?> loadClass( ClassLoader loader, String typeString )
 {
 try
  {
  return loader.loadClass( typeString );
  }
 catch( ClassNotFoundException exception )
  {
  throw new CascadingException( "unable to load class: " + typeString, exception );
  }
 }
origin: cascading/lingual-core

private Class loadClass( String className, String jarPath )
 {
 LOG.debug( "loading: {} from: {}", className, jarPath );
 if( jarPath == null ) // its a default factory
  {
  classLoader = Thread.currentThread().getContextClassLoader();
  return Reflection.loadClass( classLoader, className );
  }
 String qualifiedPath = platformBroker.makePath( platformBroker.getFullProviderPath(), jarPath );
 try
  {
  return platformBroker.loadClass( qualifiedPath, className );
  }
 finally
  {
  try
   {
   classLoader = platformBroker.getUrlClassLoader( qualifiedPath );
   }
  catch( Exception exception )
   {
   // do nothing
   }
  }
 }
}
cascading.lingual.utilReflectionloadClass

Popular methods of Reflection

  • getStaticField
  • invokeInstanceMethod
  • invokeStaticMethod
  • loadClassSafe
  • newInstance
  • newInstanceSafe

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now