public class

ScheduledTasksBeanDefinitionParser

extends AbstractSingleBeanDefinitionParser
java.lang.Object
   ↳ org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
     ↳ org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
       ↳ org.springframework.scheduling.config.ScheduledTasksBeanDefinitionParser

Class Overview

Parser for the 'scheduled-tasks' element of the scheduling namespace.

Summary

[Expand]
Inherited Constants
From class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Public Constructors
ScheduledTasksBeanDefinitionParser()
Protected Methods
void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.
String getBeanClassName(Element element)
Determine the bean class name corresponding to the supplied Element.
boolean shouldGenerateId()
Should an ID be generated instead of read from the passed in Element?

Disabled by default; subclasses can override this to enable ID generation.

[Expand]
Inherited Methods
From class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
From class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
From class java.lang.Object
From interface org.springframework.beans.factory.xml.BeanDefinitionParser

Public Constructors

public ScheduledTasksBeanDefinitionParser ()

Protected Methods

protected void doParse (Element element, ParserContext parserContext, BeanDefinitionBuilder builder)

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.

The default implementation delegates to the doParse version without ParserContext argument.

Parameters
element the XML element being parsed
parserContext the object encapsulating the current state of the parsing process
builder used to define the BeanDefinition

protected String getBeanClassName (Element element)

Determine the bean class name corresponding to the supplied Element.

Parameters
element the Element that is being parsed
Returns
  • the class name of the bean that is being defined via parsing the supplied Element, or null if none

protected boolean shouldGenerateId ()

Should an ID be generated instead of read from the passed in Element?

Disabled by default; subclasses can override this to enable ID generation. Note that this flag is about always generating an ID; the parser won't even check for an "id" attribute in this case.

Returns
  • whether the parser should always generate an id