
org.dellroad.stuff.spring.DellRoadStuffNamespaceHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dellroad-stuff-spring Show documentation
Show all versions of dellroad-stuff-spring Show documentation
DellRoad Stuff classes related to the Spring Framework.
/*
* Copyright (C) 2011 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.stuff.spring;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
* Spring {@link org.springframework.beans.factory.xml.NamespaceHandler NamespaceHandler}
* for the dellroad-stuff
XML namespace.
*
*
* This adds support for the following Spring custom XML tags:
*
* <dellroad-stuff:sql/>
, which defines a {@link org.dellroad.stuff.schema.SQLCommandList} bean
* <dellroad-stuff:sql-update/>
, which wraps a {@link org.dellroad.stuff.schema.SQLCommandList}
* in a {@link org.dellroad.stuff.spring.SpringSQLSchemaUpdate} bean
*
*/
public class DellRoadStuffNamespaceHandler extends NamespaceHandlerSupport {
public static final String NAMESPACE_URI = "http://dellroad-stuff.googlecode.com/schema/dellroad-stuff";
public static final String SQL_ELEMENT_NAME = "sql";
public static final String SQL_UPDATE_ELEMENT_NAME = "sql-update";
@Override
public void init() {
this.registerBeanDefinitionParser(SQL_ELEMENT_NAME, new SQLBeanDefinitionParser());
this.registerBeanDefinitionParser(SQL_UPDATE_ELEMENT_NAME, new SQLUpdateBeanDefinitionParser());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy