Tabnine Logo
Embedder.load
Code IndexAdd Tabnine to your IDE (free)

How to use
load
method
in
org.apache.openejb.loader.Embedder

Best Java code snippets using org.apache.openejb.loader.Embedder.load (Showing top 3 results out of 315)

origin: org.apache.geronimo.ext.openejb/openejb-loader

/**
 * Uses reflection to invoke the init(Properties props) method on the loaderClass field
 * @param properties
 * @return
 * @throws Exception
 */
public Object init(Properties properties) throws Exception {
  Class loaderClass = load();
  try {
    // get the init method
    Method init = loaderClass.getMethod("init", Properties.class);
    // create the instance
    Object instance = loaderClass.newInstance();
    // invoke init method
    Object value = init.invoke(instance, properties);
    return value;
  } catch (NoSuchMethodException e) {
    throw (IllegalStateException) new IllegalStateException("Signatures for Loader are no longer correct.").initCause(e);
  } catch (InvocationTargetException e) {
    Throwable cause = e.getCause();
    if (cause instanceof Error) {
      throw (Error) cause;
    } else {
      throw (Exception) cause;
    }
  }
}
origin: org.apache.tomee/openejb-loader

/**
 * Uses reflection to invoke the init(Properties props) method on the loaderClass field
 *
 * @param properties
 * @return
 * @throws Exception
 */
public Object init(final Properties properties) throws Exception {
  final Class loaderClass = load();
  try {
    // get the init method
    final Method init = loaderClass.getMethod("init", Properties.class);
    // create the instance
    final Object instance = loaderClass.newInstance();
    // invoke init method
    final Object value = init.invoke(instance, properties);
    return value;
  } catch (final NoSuchMethodException e) {
    throw (IllegalStateException) new IllegalStateException("Signatures for Loader are no longer correct.").initCause(e);
  } catch (final InvocationTargetException e) {
    final Throwable cause = e.getCause();
    if (cause instanceof Error) {
      throw (Error) cause;
    } else {
      throw (Exception) cause;
    }
  }
}
origin: org.apache.openejb/openejb-loader

/**
 * Uses reflection to invoke the init(Properties props) method on the loaderClass field
 *
 * @param properties
 * @return
 * @throws Exception
 */
public Object init(final Properties properties) throws Exception {
  final Class loaderClass = load();
  try {
    // get the init method
    final Method init = loaderClass.getMethod("init", Properties.class);
    // create the instance
    final Object instance = loaderClass.newInstance();
    // invoke init method
    final Object value = init.invoke(instance, properties);
    return value;
  } catch (final NoSuchMethodException e) {
    throw (IllegalStateException) new IllegalStateException("Signatures for Loader are no longer correct.").initCause(e);
  } catch (final InvocationTargetException e) {
    final Throwable cause = e.getCause();
    if (cause instanceof Error) {
      throw (Error) cause;
    } else {
      throw (Exception) cause;
    }
  }
}
org.apache.openejb.loaderEmbedderload

Javadoc

Loads the Class object for the className.

Popular methods of Embedder

  • checkOpenEjbHome
  • forcefulLoad
  • handleError
  • <init>
  • init
    Uses reflection to invoke the init(Properties props) method on the loaderClass field

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
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