congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BeanMetadataAttributeAccessor.addMetadataAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
addMetadataAttribute
method
in
org.springframework.beans.BeanMetadataAttributeAccessor

Best Java code snippets using org.springframework.beans.BeanMetadataAttributeAccessor.addMetadataAttribute (Showing top 6 results out of 315)

origin: spring-projects/spring-framework

public void parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor) {
  NodeList nl = ele.getChildNodes();
  for (int i = 0; i < nl.getLength(); i++) {
    Node node = nl.item(i);
    if (isCandidateElement(node) && nodeNameEquals(node, META_ELEMENT)) {
      Element metaElement = (Element) node;
      String key = metaElement.getAttribute(KEY_ATTRIBUTE);
      String value = metaElement.getAttribute(VALUE_ATTRIBUTE);
      BeanMetadataAttribute attribute = new BeanMetadataAttribute(key, value);
      attribute.setSource(extractSource(metaElement));
      attributeAccessor.addMetadataAttribute(attribute);
    }
  }
}
origin: org.springframework/spring-beans

public void parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor) {
  NodeList nl = ele.getChildNodes();
  for (int i = 0; i < nl.getLength(); i++) {
    Node node = nl.item(i);
    if (isCandidateElement(node) && nodeNameEquals(node, META_ELEMENT)) {
      Element metaElement = (Element) node;
      String key = metaElement.getAttribute(KEY_ATTRIBUTE);
      String value = metaElement.getAttribute(VALUE_ATTRIBUTE);
      BeanMetadataAttribute attribute = new BeanMetadataAttribute(key, value);
      attribute.setSource(extractSource(metaElement));
      attributeAccessor.addMetadataAttribute(attribute);
    }
  }
}
origin: camunda/camunda-bpm-platform

public void parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor) {
  NodeList nl = ele.getChildNodes();
  for (int i = 0; i < nl.getLength(); i++) {
    Node node = nl.item(i);
    if (isCandidateElement(node) && nodeNameEquals(node, META_ELEMENT)) {
      Element metaElement = (Element) node;
      String key = metaElement.getAttribute(KEY_ATTRIBUTE);
      String value = metaElement.getAttribute(VALUE_ATTRIBUTE);
      BeanMetadataAttribute attribute = new BeanMetadataAttribute(key, value);
      attribute.setSource(extractSource(metaElement));
      attributeAccessor.addMetadataAttribute(attribute);
    }
  }
}
origin: org.springframework.javaconfig/org.springframework.config.java

private void addConfigClassMetadata(BeanMetadataAttributeAccessor beanDef) {
  beanDef.addMetadataAttribute(new BeanMetadataAttribute(ConfigurationClass.IS_CONFIGURATION_CLASS, true));
}
origin: org.beangle.ioc/beangle-ioc-spring

/**
 * <p>
 * parseMetaElements.
 * </p>
 *
 * @param ele a {@link org.w3c.dom.Element} object.
 * @param attributeAccessor a {@link org.springframework.beans.BeanMetadataAttributeAccessor}
 *          object.
 */
public void parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor) {
 NodeList nl = ele.getChildNodes();
 for (int i = 0; i < nl.getLength(); i++) {
  Node node = nl.item(i);
  if (node instanceof Element && nodeNameEquals(node, META_ELEMENT)) {
   Element metaElement = (Element) node;
   String key = metaElement.getAttribute(KEY_ATTRIBUTE);
   String value = metaElement.getAttribute(VALUE_ATTRIBUTE);
   BeanMetadataAttribute attribute = new BeanMetadataAttribute(key, value);
   attribute.setSource(extractSource(metaElement));
   attributeAccessor.addMetadataAttribute(attribute);
  }
 }
}
origin: org.springframework.javaconfig/org.springframework.config.java

/**
 * Register <var>beanDef</var> with name <var>beanName</var>.  If <var>visibility</var> is PUBLIC
 * the bean definition registration will be delegated to the parent bean factory.  If HIDDEN, will
 * be registered locally with this BeanFactory.
 *
 * @see #registerBeanDefinition(String, BeanDefinition) for default behavior when no visibility is specified
 */
public void registerBeanDefinition(String beanName, BeanDefinition beanDef, BeanVisibility visibility) {
  // note that this bean definition was added by JavaConfig (as opposed to XML, etc)
  ((BeanMetadataAttributeAccessor) beanDef).addMetadataAttribute(
    new BeanMetadataAttribute(Constants.JAVA_CONFIG_PKG, true));
  switch (visibility) {
    case HIDDEN:
      super.registerBeanDefinition(beanName, beanDef);
      break;
    case PUBLIC:
      getParentBeanFactory().registerBeanDefinition(beanName, beanDef);
      break;
  }
}
org.springframework.beansBeanMetadataAttributeAccessoraddMetadataAttribute

Javadoc

Add the given BeanMetadataAttribute to this accessor's set of attributes.

Popular methods of BeanMetadataAttributeAccessor

  • hashCode
  • equals

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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