public static class LowLevelAppDescriptor.Builder extends AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
If properties of the builder are not modified default values be utilized. The default value for the context path is an empty string.
After the build()
has been invoked the state of the builder
will be reset to the default values.
Modifier and Type | Field and Description |
---|---|
protected String |
contextPath |
protected ResourceConfig |
rc |
cc
Constructor and Description |
---|
LowLevelAppDescriptor.Builder(Class... classes)
Create a builder with one or more root resource and provider classes.
|
LowLevelAppDescriptor.Builder(ResourceConfig rc)
Create a builder with a resource configuration.
|
LowLevelAppDescriptor.Builder(String... packages)
Create a builder with one or more package names where
root resource and provider classes reside.
|
Modifier and Type | Method and Description |
---|---|
LowLevelAppDescriptor |
build()
Build the low-level application descriptor.
|
LowLevelAppDescriptor.Builder |
contextPath(String contextPath)
Set the context path.
|
protected void |
reset() |
clientConfig
protected final ResourceConfig rc
protected String contextPath
public LowLevelAppDescriptor.Builder(String... packages) throws IllegalArgumentException
An instance of PackagesResourceConfig
will be created and
set as the resource configuration.
packages
- one or more package names where
root resource and provider classes reside.IllegalArgumentException
- if packages
is null.public LowLevelAppDescriptor.Builder(Class... classes) throws IllegalArgumentException
An instance of ClassNamesResourceConfig
will be created and
set as the resource configuration.
classes
- one or more root resource and provider classes.IllegalArgumentException
- if classes
is null.public LowLevelAppDescriptor.Builder(ResourceConfig rc)
rc
- the resource configuration.IllegalArgumentException
- if rc
is null.public LowLevelAppDescriptor.Builder contextPath(String contextPath)
contextPath
- the context path to the application.IllegalArgumentException
- if contextPath
is null.public LowLevelAppDescriptor build()
build
in class AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
protected void reset()
reset
in class AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
Copyright © 2013 Oracle Corporation. All rights reserved.