Class DeploymentScanner.EnvironmentConfig
java.lang.Object
org.eclipse.jetty.deploy.DeploymentScanner.EnvironmentConfig
- Enclosing class:
 DeploymentScanner
Builder of a deployment configuration for a specific 
Environment.
Results in Attributes for Environment containing the
deployment configuration (as Deployable keys) that is applied to all deployable
apps belonging to that Environment.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidloadProperties(Path path) Load a java properties file as a set of Attributes for this Environment.voidloadPropertiesFromPathName(String pathName) Convenience method forloadProperties(Path.of(pathName)), called from Jetty XML files.voidsetConfigurationClasses(String configurations) This is equivalent to setting theDeployable.CONFIGURATION_CLASSESattribute.voidsetConfigurationClasses(String[] configurations) This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.voidsetContainerScanJarPattern(String pattern) This is equivalent to setting theDeployable.CONTAINER_SCAN_JARSproperty.voidsetDefaultContextHandlerClass(Class<? extends ContextHandler> contextHandlerClass) The default class that this environment uses to createContextHandlerinstances (supports a class that implementsjava.util.function.Supplier<ContextHandler>as well).voidsetDefaultContextHandlerClassName(String className) The name of the default class that this environment uses to createContextHandlerinstances (supports a class that implementsjava.util.function.Supplier<ContextHandler>as well).voidsetDefaultsDescriptor(String defaultsDescriptor) Set the defaultsDescriptor.voidsetExtractWars(boolean extractWars) This is equivalent to setting theDeployable.EXTRACT_WARSattribute.voidsetParentLoaderPriority(boolean parentLoaderPriority) This is equivalent to setting theDeployable.PARENT_LOADER_PRIORITYattribute.voidThis is equivalent to setting theDeployable.SCI_EXCLUSION_PATTERNproperty.voidThis is equivalent to setting theDeployable.SCI_ORDERproperty.voidsetWebInfScanJarPattern(String pattern) This is equivalent to setting theDeployable.WEBINF_SCAN_JARSproperty. 
- 
Method Details
- 
loadProperties
Load a java properties file as a set of Attributes for this Environment.- Parameters:
 path- the path of the properties file- Throws:
 IOException- if unable to read the properties file
 - 
loadPropertiesFromPathName
Convenience method forloadProperties(Path.of(pathName)), called from Jetty XML files.- Parameters:
 pathName- the name of the path to load.- Throws:
 IOException- if unable to read the properties file- See Also:
 
 - 
setConfigurationClasses
This is equivalent to setting theDeployable.CONFIGURATION_CLASSESattribute.- Parameters:
 configurations- The configuration class names as a comma separated list- See Also:
 
 - 
setConfigurationClasses
This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.- Parameters:
 configurations- The configuration class names.- See Also:
 
 - 
setContainerScanJarPattern
This is equivalent to setting theDeployable.CONTAINER_SCAN_JARSproperty.- Parameters:
 pattern- The regex pattern to use when bytecode scanning container jars- See Also:
 
 - 
setDefaultContextHandlerClass
The default class that this environment uses to createContextHandlerinstances (supports a class that implementsjava.util.function.Supplier<ContextHandler>as well).This is the fallback class used, if the context class itself isn't defined by the web application being deployed (such as from a Jetty XML).
- Parameters:
 contextHandlerClass- the default class for this environment's ContextHandler.- See Also:
 
 - 
setDefaultContextHandlerClassName
The name of the default class that this environment uses to createContextHandlerinstances (supports a class that implementsjava.util.function.Supplier<ContextHandler>as well).This is the fallback class used, if the context class itself isn't defined by the web application being deployed. (such as from an XML definition)
- Parameters:
 className- the default class name for this environment's context deployable.- See Also:
 
 - 
setDefaultsDescriptor
Set the defaultsDescriptor. This is equivalent to setting theDeployable.DEFAULTS_DESCRIPTORattribute.- Parameters:
 defaultsDescriptor- the defaultsDescriptor to set- See Also:
 
 - 
setExtractWars
public void setExtractWars(boolean extractWars) This is equivalent to setting theDeployable.EXTRACT_WARSattribute.- Parameters:
 extractWars- the extractWars to set- See Also:
 
 - 
setParentLoaderPriority
public void setParentLoaderPriority(boolean parentLoaderPriority) This is equivalent to setting theDeployable.PARENT_LOADER_PRIORITYattribute.- Parameters:
 parentLoaderPriority- the parentLoaderPriority to set- See Also:
 
 - 
setServletContainerInitializerExclusionPattern
This is equivalent to setting theDeployable.SCI_EXCLUSION_PATTERNproperty.- Parameters:
 pattern- The regex pattern to exclude ServletContainerInitializers from executing- See Also:
 
 - 
setServletContainerInitializerOrder
This is equivalent to setting theDeployable.SCI_ORDERproperty.- Parameters:
 order- The ordered list of ServletContainerInitializer classes to run- See Also:
 
 - 
setWebInfScanJarPattern
This is equivalent to setting theDeployable.WEBINF_SCAN_JARSproperty.- Parameters:
 pattern- The regex pattern to use when bytecode scanning web-inf jars- See Also:
 
 
 -