public interface

ApplicationContextPreProcessor

com.atlassian.plugin.osgi.spring.external.ApplicationContextPreProcessor

Class Overview

Hook to customize the spring application context before it is populated

Summary

Public Methods
boolean isSpringPoweredBundle(Bundle bundle)
Detects if this bundle is a Spring bundle.
void process(Bundle bundle, ConfigurableApplicationContext applicationContext)
Process a context before it is populated, usually via adding org.springframework.beans.factory.config.BeanFactoryPostProcessor instances.

Public Methods

public boolean isSpringPoweredBundle (Bundle bundle)

Detects if this bundle is a Spring bundle. This allows a pre-processor to have a Spring context built for a bundle even if the bundle doesn't have the Spring context header or any XML files in META-INF/spring.

Parameters
bundle The bundle to create an application context for
Returns
  • True if a spring context should be created, false otherwise

public void process (Bundle bundle, ConfigurableApplicationContext applicationContext)

Process a context before it is populated, usually via adding org.springframework.beans.factory.config.BeanFactoryPostProcessor instances.

Parameters
bundle The target bundle
applicationContext The target application context before population