Class JeeProcessingUnitContainerProvider

All Implemented Interfaces:
ClusterInfoAware, BeanLevelPropertiesAware
Direct Known Subclasses:
JettyJeeProcessingUnitContainerProvider

public abstract class JeeProcessingUnitContainerProvider extends ApplicationContextProcessingUnitContainerProvider
An extension to the ApplicationContextProcessingUnitContainerProvider that can handle JEE processing units.
Author:
kimchy
  • Field Details

  • Constructor Details

    • JeeProcessingUnitContainerProvider

      public JeeProcessingUnitContainerProvider()
  • Method Details

    • getJeeContainerType

      public abstract String getJeeContainerType()
    • getManifestURLs

      public Iterable<URL> getManifestURLs()
    • setManifestUrls

      public void setManifestUrls(Iterable<URL> manifestURLs)
      Overrides:
      setManifestUrls in class ProcessingUnitContainerProvider
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
      Sets the class loader this processing unit container will load the application context with.
      Overrides:
      setClassLoader in class ProcessingUnitContainerProvider
    • setDeployPath

      public void setDeployPath(File warPath)
      Sets the deploy path where the exploded war jetty will work with is located.
      Overrides:
      setDeployPath in class ProcessingUnitContainerProvider
    • getDeployPath

      public File getDeployPath()
    • addConfigLocation

      public void addConfigLocation(org.springframework.core.io.Resource resource)
      Adds a config location using Springs Resource abstraction. This config location represents a Spring xml context.

      Note, once a config location is added that default location used when no config location is defined won't be used (the default location is classpath*:/META-INF/spring/pu.xml).

      Specified by:
      addConfigLocation in class ApplicationContextProcessingUnitContainerProvider
    • addConfigLocation

      public void addConfigLocation(String path) throws IOException
      Adds a config location based on a String description using Springs PathMatchingResourcePatternResolver.
      Specified by:
      addConfigLocation in class ApplicationContextProcessingUnitContainerProvider
      Throws:
      IOException
      See Also:
      • PathMatchingResourcePatternResolver
    • setParentContext

      public void setParentContext(org.springframework.context.ApplicationContext parentContext)
      Sets Spring parent ApplicationContext that will be used when constructing this processing unit application context.
    • getWebAppClassLoaderJars

      protected Iterable<String> getWebAppClassLoaderJars()
    • getWebAppClassLoaderClassPath

      protected Iterable<String> getWebAppClassLoaderClassPath()
    • getJeeClassLoader

      protected ClassLoader getJeeClassLoader() throws Exception
      Throws:
      Exception
    • initApplicationContext

      protected ResourceApplicationContext initApplicationContext()
    • getJeeContainerJarPath

      public static Path getJeeContainerJarPath(String jeeContainer)
    • getJeeContainer

      public static String getJeeContainer(BeanLevelProperties properties)