Class IntegratedProcessingUnitContainerProvider

All Implemented Interfaces:
ClusterInfoAware, BeanLevelPropertiesAware

public class IntegratedProcessingUnitContainerProvider extends ApplicationContextProcessingUnitContainerProvider
An IntegratedProcessingUnitContainer provider. An integrated processing unit container can be used to run a processing unit within an existing environment. An example of what this existing environment will provide is the classpath that the processing unit will run with. Examples for using the integrated processing unit container can be integration tests or running the processing unit from within an IDE.

At its core the integrated processing unit container is built around Spring ApplicationContext configured based on a set of config locations.

The provider allows for programmatic configuration of different processing unit aspects. It allows to configure where the processing unit Spring context xml descriptors are located (by default it uses classpath*:/META-INF/spring/pu.xml). It also allows to set BeanLevelProperties and ClusterInfo that will be injected to beans configured within the processing unit.

For a runnable "main" processing unit container please see IntegratedProcessingUnitContainer.main(String[]).

Author:
kimchy