createApplicationContext
public DelegatedExecutionOsgiBundleApplicationContext createApplicationContext(org.osgi.framework.BundleContext bundleContext)
throws java.lang.Exception
Creates an application context for the given bundle context. If no
application context needs to be created, then null should be
returned. Exceptions will be caught and logged but will not prevent the
creation of other application contexts.
- Specified by:
createApplicationContext in interface OsgiApplicationContextCreator
- Parameters:
bundleContext - OSGi bundle context determining the context creation
- Returns:
null if no context should be created, non-
null otherwise
- Throws:
java.lang.Exception - if something goes wrong