Tabnine Logo
UseBeanTag.getDefaultClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultClass
method
in
org.apache.commons.jelly.tags.core.UseBeanTag

Best Java code snippets using org.apache.commons.jelly.tags.core.UseBeanTag.getDefaultClass (Showing top 4 results out of 315)

origin: org.jenkins-ci/commons-jelly

/**
 * Attempts to convert the given object to a Class instance.
 * If the classObject is already a Class it will be returned
 * otherwise it will be converted to a String and loaded
 * using the default class loading mechanism.
 */
protected Class convertToClass(Object classObject)
throws MissingAttributeException, ClassNotFoundException {
  if (classObject instanceof Class) {
    return (Class) classObject;
  }
  else if ( classObject == null ) {
    Class theClass = getDefaultClass();
    if (theClass == null) {
      throw new MissingAttributeException("class");
    }
    return theClass;
  }
  else {
    String className = classObject.toString();
    return loadClass(className);
  }
}
origin: org.hudsonci.stapler/commons-jelly

/**
 * Attempts to convert the given object to a Class instance.
 * If the classObject is already a Class it will be returned
 * otherwise it will be converted to a String and loaded
 * using the default class loading mechanism.
 */
protected Class convertToClass(Object classObject)
throws MissingAttributeException, ClassNotFoundException {
  if (classObject instanceof Class) {
    return (Class) classObject;
  }
  else if ( classObject == null ) {
    Class theClass = getDefaultClass();
    if (theClass == null) {
      throw new MissingAttributeException("class");
    }
    return theClass;
  }
  else {
    String className = classObject.toString();
    return loadClass(className);
  }
}
origin: commons-jelly/commons-jelly

/**
 * Attempts to convert the given object to a Class instance.
 * If the classObject is already a Class it will be returned
 * otherwise it will be converted to a String and loaded
 * using the default class loading mechanism.
 */
protected Class convertToClass(Object classObject)
throws MissingAttributeException, ClassNotFoundException {
  if (classObject instanceof Class) {
    return (Class) classObject;
  }
  else if ( classObject == null ) {
    Class theClass = getDefaultClass();
    if (theClass == null) {
      throw new MissingAttributeException("class");
    }
    return theClass;
  }
  else {
    String className = classObject.toString();
    return loadClass(className);
  }
}
origin: org.jvnet.hudson/commons-jelly

/**
 * Attempts to convert the given object to a Class instance.
 * If the classObject is already a Class it will be returned
 * otherwise it will be converted to a String and loaded
 * using the default class loading mechanism.
 */
protected Class convertToClass(Object classObject)
throws MissingAttributeException, ClassNotFoundException {
  if (classObject instanceof Class) {
    return (Class) classObject;
  }
  else if ( classObject == null ) {
    Class theClass = getDefaultClass();
    if (theClass == null) {
      throw new MissingAttributeException("class");
    }
    return theClass;
  }
  else {
    String className = classObject.toString();
    return loadClass(className);
  }
}
org.apache.commons.jelly.tags.coreUseBeanTaggetDefaultClass

Javadoc

Allows derived classes to provide a default bean implementation class

Popular methods of UseBeanTag

  • processBean
    By default this will export the bean using the given variable if it is defined. This Strategy method
  • addIgnoreProperty
    Adds a name to the Set of property names that will be skipped when setting bean properties. In other
  • convertToClass
    Attempts to convert the given object to a Class instance. If the classObject is already a Class it w
  • findAncestorWithClass
  • getAttributeType
  • getAttributes
  • getIgnorePropertySet
  • invokeBody
  • isIgnoreUnknownProperties
  • loadClass
    Loads the given class using the default class loading mechanism which is to try use the current Thre
  • newInstance
    Creates a new instance of the given class, which by default will invoke the default constructor. Der
  • setBeanProperties
    Sets the properties on the bean. Derived tags could implement some custom type conversion etc. This
  • newInstance,
  • setBeanProperties,
  • validateBeanProperties,
  • doTag

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Notification (javax.management)
  • 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