KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jbi > config > DebugClassPathXmlApplicationContext


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.servicemix.jbi.config;
18
19 import org.springframework.beans.BeansException;
20 import org.springframework.beans.factory.support.DefaultListableBeanFactory;
21 import org.springframework.context.ApplicationContext;
22 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
23
24 import java.io.IOException JavaDoc;
25 import java.util.List JavaDoc;
26
27 /**
28  * A debugging version of the class to add tracing of the generated XML.
29  *
30  * @version $Revision: 426415 $
31  */

32 public class DebugClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {
33     public DebugClassPathXmlApplicationContext(String JavaDoc id) throws BeansException {
34         super(id);
35         //super(new String[] {id}, false);
36
}
37
38     public DebugClassPathXmlApplicationContext(String JavaDoc id, List JavaDoc processors) throws BeansException {
39         super(id, processors);
40         //super(new String[] {id}, false);
41
}
42
43     public DebugClassPathXmlApplicationContext(String JavaDoc[] strings) throws BeansException {
44         super(strings);
45     }
46
47     public DebugClassPathXmlApplicationContext(String JavaDoc[] strings, boolean b) throws BeansException {
48         super(strings, b);
49     }
50
51     public DebugClassPathXmlApplicationContext(String JavaDoc[] strings, ApplicationContext applicationContext) throws BeansException {
52         super(strings, applicationContext);
53     }
54
55     public DebugClassPathXmlApplicationContext(String JavaDoc[] strings, boolean b, ApplicationContext applicationContext) throws BeansException {
56         super(strings, b, applicationContext);
57     }
58
59     protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException JavaDoc {
60         super.loadBeanDefinitions(beanFactory);
61         /*
62         XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(beanFactory);
63         beanDefinitionReader.setParserClass(DebugXmlBeanDefinitionParser.class);
64         beanDefinitionReader.setResourceLoader(this);
65         beanDefinitionReader.setEntityResolver(new ResourceEntityResolver(this));
66         initBeanDefinitionReader(beanDefinitionReader);
67         loadBeanDefinitions(beanDefinitionReader);
68         */

69     }
70 }
71
Popular Tags