
org.jsimpledb.spring.JSimpleDBNamespaceHandler Maven / Gradle / Ivy
Show all versions of jsimpledb-spring Show documentation
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.spring;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
* Spring {@link org.springframework.beans.factory.xml.NamespaceHandler NamespaceHandler}
* for the jsimpledb
XML namespace.
*
*
* This class adds support for the <jsimpledb:jsimpledb>
, <jsimpledb:scan-classes>
and
* <jsimpledb:scan-field-types>
XML tags.
*
* @see org.jsimpledb.spring
*/
public class JSimpleDBNamespaceHandler extends NamespaceHandlerSupport {
public static final String JSIMPLEDB_NAMESPACE_URI = "http://jsimpledb.googlecode.com/schema/jsimpledb";
public static final String JSIMPLEDB_TAG = "jsimpledb";
public static final String SCAN_CLASSES_TAG = "scan-classes";
public static final String SCAN_FIELD_TYPES_TAG = "scan-field-types";
@Override
public void init() {
this.registerBeanDefinitionParser(JSIMPLEDB_TAG, new JSimpleDBBeanDefinitionParser());
this.registerBeanDefinitionParser(SCAN_CLASSES_TAG, new ScanClassesBeanDefinitionParser());
this.registerBeanDefinitionParser(SCAN_FIELD_TYPES_TAG, new ScanFieldTypesBeanDefinitionParser());
}
}