Tabnine Logo
BeanCreationDirective.getAlternateClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getAlternateClass
method
in
org.dozer.factory.BeanCreationDirective

Best Java code snippets using org.dozer.factory.BeanCreationDirective.getAlternateClass (Showing top 3 results out of 315)

origin: net.sf.dozer/dozer

public Object create(BeanCreationDirective directive) {
 Class<?> classToCreate = directive.getActualClass();
 try {
  return newInstance(classToCreate);
 } catch (Exception e) {
  if (directive.getAlternateClass() != null) {
   return newInstance(directive.getAlternateClass());
  } else {
   MappingUtils.throwMappingException(e);
  }
 }
 return null;
}
origin: org.openl.rules/org.openl.rules.mapping.dev.dozer

public Object create(MappingParameters params, BeanCreationDirective directive) {
  Class<?> classToCreate = directive.getActualClass();
  try {
    return newInstance(classToCreate);
  } catch (Exception e) {
    if (directive.getAlternateClass() != null) {
      return newInstance(directive.getAlternateClass());
    } else {
      MappingUtils.throwMappingException(e);
    }
  }
  return null;
}
origin: org.openl.rules/org.openl.rules.mapping.dev.modified

public Object create(MappingParameters params, BeanCreationDirective directive) {
  Class<?> classToCreate = directive.getActualClass();
  try {
    return newInstance(classToCreate);
  } catch (Exception e) {
    if (directive.getAlternateClass() != null) {
      return newInstance(directive.getAlternateClass());
    } else {
      MappingUtils.throwMappingException(e);
    }
  }
  return null;
}
org.dozer.factoryBeanCreationDirectivegetAlternateClass

Popular methods of BeanCreationDirective

  • <init>
  • getActualClass
  • getCreateMethod
  • getFactoryId
  • getFactoryName
  • getSrcClass
  • getSrcObject
  • setCreateMethod

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
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