@Beta public final class Application extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Application.Builder
A wrapper around ApplicationBuilder that generates a services.xml
|
Modifier and Type | Field and Description |
---|---|
static String |
vespaLocalProperty
This system property is set to "true" upon creation of an Application.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down all services.
|
static Application |
fromApplicationPackage(File file,
Networking networking)
Factory method to create an Application from an application package.
|
static Application |
fromApplicationPackage(Path path,
Networking networking)
Factory method to create an Application from an application package.
|
static Application |
fromBuilder(Application.Builder builder) |
static Application |
fromServicesXml(String xml,
Networking networking)
Factory method to create an Application from an XML String.
|
JDisc |
getJDisc(String id) |
public static final String vespaLocalProperty
@Beta public static Application fromBuilder(Application.Builder builder) throws Exception
Exception
public static Application fromServicesXml(String xml, Networking networking)
fromApplicationPackage(Path, Networking)
.xml
- the XML configuration to usepublic static Application fromApplicationPackage(Path path, Networking networking)
path
- the reference to the application package to usepublic static Application fromApplicationPackage(File file, Networking networking)
file
- the reference to the application package to usepublic JDisc getJDisc(String id)
id
- from the jdisc element in services xml. Default id in services.xml is "jdisc"public void close()
close
in interface AutoCloseable
Copyright © 2018. All rights reserved.