001 /**
002 * Copyright 2010 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.student.common.search.service.impl;
017
018 import org.springframework.beans.factory.xml.BeanDefinitionParser;
019 import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
020
021 public class SearchNamespaceHandler extends NamespaceHandlerSupport {
022
023 @Override
024 public void init() {
025 BeanDefinitionParser parser = new SearchBeanDefinitionParser();
026 this.registerBeanDefinitionParser("fieldDescriptor", parser);
027 this.registerBeanDefinitionParser("searchCriteriaTypeInfo", parser);
028 this.registerBeanDefinitionParser("queryParam", parser);
029 this.registerBeanDefinitionParser("resultColumn", parser);
030 this.registerBeanDefinitionParser("searchType", parser);
031 this.registerBeanDefinitionParser("searchResultTypeInfo", parser);
032
033 this.registerBeanDefinitionParser("crossSearchType", parser);
034 this.registerBeanDefinitionParser("subSearch", parser);
035 this.registerBeanDefinitionParser("subSearchParamMappings", parser);
036 this.registerBeanDefinitionParser("joinCriteria", parser);
037 this.registerBeanDefinitionParser("comparison", parser);
038 this.registerBeanDefinitionParser("leftHandSide", parser);
039 this.registerBeanDefinitionParser("rightHandSide", parser);
040 this.registerBeanDefinitionParser("joinResultMapping", parser);
041
042 }
043
044 }