com.atlassian.plugin.osgi.spring
Class NonValidatingOsgiApplicationContextCreator

java.lang.Object
  extended by com.atlassian.plugin.osgi.spring.NonValidatingOsgiApplicationContextCreator
All Implemented Interfaces:
org.springframework.osgi.extender.OsgiApplicationContextCreator

public class NonValidatingOsgiApplicationContextCreator
extends Object
implements org.springframework.osgi.extender.OsgiApplicationContextCreator

Application context creator that will use a special application context that disables XML Schema validation

Since:
2.5.0

Constructor Summary
NonValidatingOsgiApplicationContextCreator()
           
 
Method Summary
 org.springframework.osgi.context.DelegatedExecutionOsgiBundleApplicationContext createApplicationContext(org.osgi.framework.BundleContext bundleContext)
          Creates an application context that disables validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonValidatingOsgiApplicationContextCreator

public NonValidatingOsgiApplicationContextCreator()
Method Detail

createApplicationContext

public org.springframework.osgi.context.DelegatedExecutionOsgiBundleApplicationContext createApplicationContext(org.osgi.framework.BundleContext bundleContext)
                                                                                                         throws Exception
Creates an application context that disables validation. Most of this code is copy/pasted from DefaultOsgiApplicationContextCreator

Specified by:
createApplicationContext in interface org.springframework.osgi.extender.OsgiApplicationContextCreator
Parameters:
bundleContext - The bundle context for the application context
Returns:
The new application context
Throws:
Exception - If anything goes wrong


Copyright © 2010 Atlassian. All Rights Reserved.