public static class JNDIObjectLocator.JNDIObjectLocatorBuilder extends Object
JNDIObjectLocator
.Constructor and Description |
---|
JNDIObjectLocatorBuilder() |
Modifier and Type | Method and Description |
---|---|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
app()
Specifies that the default namespace to be used in construction of portable JNDI names must be
java:app instead of java:module . |
JNDIObjectLocator |
build()
Builds the
JNDIObjectLocator . |
JNDIObjectLocator.JNDIObjectLocatorBuilder |
cacheRemote()
Specifies to cache remote enterprise beans.
|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
environment(Map<String,String> environment)
Specifies the environment to be passed into
InitialContext . |
JNDIObjectLocator.JNDIObjectLocatorBuilder |
environment(String key,
String value)
Adds an environment property.
|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
global()
Specifies that the default namespace to be used in construction of portable JNDI names must be
java:global instead of java:module . |
JNDIObjectLocator.JNDIObjectLocatorBuilder |
initialHost(String initialHost)
Adds initial host environment property.
|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
initialPort(int initialPort)
Adds initial port environment property.
|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
namespace(String namespace)
Specifies the default namespace to be used in construction of portable JNDI names.
|
JNDIObjectLocator.JNDIObjectLocatorBuilder |
noCaching()
Specifies to disable cache.
|
public JNDIObjectLocator.JNDIObjectLocatorBuilder environment(Map<String,String> environment)
InitialContext
. The default is null
.environment
- The environment.NullPointerException
- When given environment is null.IllegalStateException
- When environment is already set in this builder or when this builder is already build.public JNDIObjectLocator.JNDIObjectLocatorBuilder environment(String key, String value)
key
- The key of the new environment property.value
- The value of the new environment property.NullPointerException
- When key or value is null.IllegalStateException
- When environment property is already set in this builder or when this builder is already build.public JNDIObjectLocator.JNDIObjectLocatorBuilder initialHost(String initialHost)
initialHost
- The initial host environment property.IllegalStateException
- When initial host is already set in this builder or when this builder is already build.NullPointerException
- When value is null.public JNDIObjectLocator.JNDIObjectLocatorBuilder initialPort(int initialPort)
initialPort
- The initial port environment property.IllegalStateException
- When initial port is already set in this builder or when this builder is already build.public JNDIObjectLocator.JNDIObjectLocatorBuilder namespace(String namespace)
java:module
.namespace
- The namespace.IllegalStateException
- When namespace is already set in this builder or when this builder is already build.NullPointerException
- When given namespace is null.public JNDIObjectLocator.JNDIObjectLocatorBuilder global()
java:global
instead of java:module
.IllegalStateException
- When namespace is already set in this builder.public JNDIObjectLocator.JNDIObjectLocatorBuilder app()
java:app
instead of java:module
.IllegalStateException
- When namespace is already set in this builder.public JNDIObjectLocator.JNDIObjectLocatorBuilder noCaching()
false
.IllegalStateException
- When noCaching is already set in this builder or when this builder is already build.public JNDIObjectLocator.JNDIObjectLocatorBuilder cacheRemote()
false
.IllegalStateException
- When cacheRemote is already set in this builder or when this builder is already build.public JNDIObjectLocator build()
JNDIObjectLocator
.JNDIObjectLocator
.IllegalStateException
- When this builder is already build.Copyright © 2012–2022 OmniFaces. All rights reserved.