001 /* 002 * Copyright 2008-2009 the original author or authors. 003 * The contents of this file are subject to the Mozilla Public License 004 * Version 1.1 (the "License"); you may not use this file except in 005 * compliance with the License. You may obtain a copy of the License at 006 * http://www.mozilla.org/MPL/ 007 * 008 * Software distributed under the License is distributed on an "AS IS" 009 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 010 * License for the specific language governing rights and limitations 011 * under the License. 012 */ 013 014 package com.mtgi.analytics.aop.config.v10; 015 016 import org.springframework.beans.factory.xml.NamespaceHandlerSupport; 017 018 /** 019 * <code>NamespaceHandler</code> allowing for the configuration of 020 * declarative behavior tracking management using either XML or using annotations. 021 * 022 * <p>This namespace handler is the central piece of functionality in the 023 * Spring 2 behavior tracking management facilities and offers two appraoched 024 * to declaratively manage transactions. 025 * 026 * <p>One approach uses behavior tracking semantics defined in XML using the 027 * <code><bt:advice></code> elements, the other uses annotations 028 * in combination with the <code><bt:annotation-driven></code> element. 029 * 030 * @author Shawn Cao 031 */ 032 public class BtNamespaceHandler extends NamespaceHandlerSupport { 033 034 public void init() { 035 registerBeanDefinitionParser("advice", new BtAdviceBeanDefinitionParser()); 036 //registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenBeanDefinitionParser()); 037 038 } 039 040 }