xdoclet.modules.spring

Class SpringXmlSubTask

public class SpringXmlSubTask extends XmlSubTask

Generates XML file to wire beans in the Spring framework.

Author: Craig Walls (xdoclet@habuma.com)

UNKNOWN: March 5, 2004 display-name = "spring.xml" name = "springxml" parent = "xdoclet.modules.spring.SpringDocletTask" file = "spring-beans.xml" relates-to = "spring.xml" description = "An XML unparsed entity containing * bean declarations to be included in a generated Spring bean XML file."

Constructor Summary
SpringXmlSubTask()
Method Summary
protected voidengineStarted()
voidexecute()
Describe what the method does
StringgetDefaultAutowire()
StringgetDefaultDependencyCheck()
StringgetDefaultLazyInit()
voidsetDefaultAutowire(String autowire)
Sets the default autowiring mode to apply to all beans in the generated file.
voidsetDefaultDependencyCheck(String dependencyCheck)
Sets the default dependency checking mode for all beans in the generated file.
voidsetDefaultLazyInit(String lazyInit)
Sets the default lazy initialization mode for all beans in the generated file.
voidsetDestinationFile(String destinationFile)
Sets the name of the generated bean XML file.

Constructor Detail

SpringXmlSubTask

public SpringXmlSubTask()

Method Detail

engineStarted

protected void engineStarted()

execute

public void execute()
Describe what the method does

Throws: XDocletException

getDefaultAutowire

public String getDefaultAutowire()

getDefaultDependencyCheck

public String getDefaultDependencyCheck()

getDefaultLazyInit

public String getDefaultLazyInit()

setDefaultAutowire

public void setDefaultAutowire(String autowire)
Sets the default autowiring mode to apply to all beans in the generated file. Each bean can override this default by setting the autowire attribute of \@spring.bean. Defaults to "no".

Parameters: autowire

setDefaultDependencyCheck

public void setDefaultDependencyCheck(String dependencyCheck)
Sets the default dependency checking mode for all beans in the generated file. Each bean can override this default setting the dependency-check attribute of \@spring.bean. Defaults to "none".

Parameters: dependencyCheck

setDefaultLazyInit

public void setDefaultLazyInit(String lazyInit)
Sets the default lazy initialization mode for all beans in the generated file. Each bean can override this default by setting the lazy-init attribute of \@spring.bean. Defaults to "false".

Parameters: lazyInit

setDestinationFile

public void setDestinationFile(String destinationFile)
Sets the name of the generated bean XML file. Defaults to "spring.xml".

Parameters: destinationFile