public class AppVersionFactory extends Object
AppVersionFactory constructs instances of AppVersion. It contains all of the logic about how application
resources are laid out on the filesystem, and is responsible for
constructing a ClassLoader that can be used to load
resources and classes for a particular application.| Modifier and Type | Class and Description |
|---|---|
static class |
AppVersionFactory.Builder
Builder for AppVersionFactory.
|
| Constructor and Description |
|---|
AppVersionFactory(NullSandboxPlugin sandboxPlugin,
File sharedDirectory,
String runtimeVersion,
boolean defaultToNativeUrlStreamHandler,
boolean forceUrlfetchUrlStreamHandler,
boolean ignoreDaemonThreads,
boolean useEnvVarsFromAppInfo,
String fixedApplicationPath)
Construct a new
AppVersionFactory. |
| Modifier and Type | Method and Description |
|---|---|
static AppVersionFactory.Builder |
builder() |
static AppVersionFactory.Builder |
builderForTest() |
AppVersion |
createAppVersion(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo,
com.google.apphosting.utils.config.AppEngineWebXml appEngineWebXml,
ApplicationEnvironment.RuntimeConfiguration configuration)
Create an
AppVersion from the specified AppInfo protocol buffer. |
AppVersion |
createAppVersionForTest(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
Creates a new
AppVersion with a default RuntimeConfiguration. |
com.google.apphosting.utils.config.AppEngineWebXml |
readAppEngineWebXml(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo) |
public AppVersionFactory(NullSandboxPlugin sandboxPlugin, File sharedDirectory, String runtimeVersion, boolean defaultToNativeUrlStreamHandler, boolean forceUrlfetchUrlStreamHandler, boolean ignoreDaemonThreads, boolean useEnvVarsFromAppInfo, @Nullable String fixedApplicationPath)
AppVersionFactory.public static AppVersionFactory.Builder builder()
public static AppVersionFactory.Builder builderForTest()
public com.google.apphosting.utils.config.AppEngineWebXml readAppEngineWebXml(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
throws FileNotFoundException
FileNotFoundExceptionpublic AppVersion createAppVersion(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo, com.google.apphosting.utils.config.AppEngineWebXml appEngineWebXml, ApplicationEnvironment.RuntimeConfiguration configuration) throws IOException
AppVersion from the specified AppInfo protocol buffer.appInfo - The application configuration.configuration - The runtime configuration for the application.FileNotFoundException - if any of the specified files cannot be found.IOException - if there is a problem verifying that the root directory from
appInfo is already the current directory.public AppVersion createAppVersionForTest(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo) throws IOException
AppVersion with a default RuntimeConfiguration.appInfo - The application configuration.FileNotFoundException - if appengine-web.xml cannot be read.IOException - if there is a problem verifying that the root directory from
appInfo is already the current directory.Copyright © 2022. All rights reserved.