public class OpenWebBeansConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_PROXYING_PARAM
Environment property which comma separated list of classes which
should NOT fail with UnproxyableResolutionException
|
static String |
APPLICATION_IS_JSP
Application is core JSP
|
static String |
APPLICATION_SUPPORTS_CONVERSATION
Supports conversations
|
static String |
CONTAINER_LIFECYCLE
Container lifecycle
|
static String |
CONTEXTS_SERVICE
Contexts Service
|
static String |
CONVERSATION_SERVICE
Conversation Service
|
static String |
CONVERSATION_TIMEOUT_INTERVAL
Timeout interval in ms
|
static String |
EAGER_SESSION_INITIALISATION
By default we do _not_ force session creation in our WebBeansConfigurationListener.
|
static String |
EL_ADAPTOR_SERVICE
EL Adaptor
|
static String |
FAST_MATCHING
If generics should be taken into account for the matching
|
static String |
GENERATOR_JAVA_VERSION
The Java Version to use for the generated proxy classes.
|
static String |
IGNORED_EXTENSIONS
A comma-separated list of fully qualified class names of CDI Extensions that should be ignored.
|
static String |
IGNORED_INTERFACES
a comma-separated list of fully qualified class names that should be ignored
when determining if a decorator matches its delegate.
|
static String |
INTERCEPTOR_FORCE_NO_CHECKED_EXCEPTIONS
Lifycycle methods like
PostConstruct and
PreDestroy must not define a checked Exception
regarding to the spec. |
static String |
JNDI_SERVICE
JNDI Service SPI
|
static String |
PRODUCER_INTERCEPTION_SUPPORT |
static String |
PROXY_MAPPING_PREFIX
prefix followed by the fully qualified scope name, for configuring NormalScopedBeanInterceptorHandler
for our proxies.
|
static String |
RESOURCE_INJECTION_SERVICE
Resource Injection Service
|
static String |
SCAN_EXCLUSION_PATHS
A list of known JARs/paths which should not be scanned for beans
|
static String |
SCAN_EXTENSION_JARS
A boolean to enable CDI 1.1 behavior to not scan "extension JARs".
|
static String |
SCAN_ONLY_BEANS_XML_JARS
Flag which indicates that only jars with an explicit META-INF/beans.xml marker file shall get parsed.
|
static String |
SCANNER_SERVICE
Scanner Service
|
static String |
SECURITY_SERVICE
Security Service
|
static String |
STRICT_DYNAMIC_VALIDATION
Enable that calls to various methods get strictly validated.
|
static String |
TRANSACTION_SERVICE
Transaction Service
|
static String |
USE_BDA_BEANSXML_SCANNER
Deprecated.
as spec section 5 and 12 contradict each other and the BDA per jar handling is broken anyway
|
static String |
USE_EJB_DISCOVERY
Use EJB Discovery or not
|
static String |
VALIDATOR_SERVICE
Validator Service
|
| Constructor and Description |
|---|
OpenWebBeansConfiguration()
Parse configuration.
|
OpenWebBeansConfiguration(Properties properties)
you can configure this externally as well.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigListValue(String keyName,
String value)
Add a configuration value to the Set of configured values registered
under the keyName.
|
Set<String> |
getConfigListValues(String keyName)
Scan all openwebbeans.properties files + system properties +
syste.env for the given key.
|
String |
getGeneratorJavaVersion() |
Set<String> |
getIgnoredExtensions() |
Set<String> |
getIgnoredInterfaces() |
String |
getProperty(String key)
Gets property.
|
String |
getProperty(String key,
String defaultValue)
Gets property value.
|
boolean |
getScanExtensionJars() |
boolean |
isJspApplication()
Gets jsp property.
|
void |
parseConfiguration()
(re)read the configuration from the resources in the classpath.
|
boolean |
scanOnlyBeansXmlJars()
Flag which indicates that only jars with an explicit META-INF/beans.xml marker file shall get paresed.
|
void |
setProperty(String key,
Object value)
Sets given property.
|
List<String> |
splitValues(String commaSeparatedVals)
Take the given commaSeparatedVals and spit them by ',' and trim them.
|
boolean |
strictDynamicValidation()
Flag which indicates that programmatic invocations to vaious BeanManager methods
should get strictly validated.
|
boolean |
supportsConversation()
Gets conversation supports property.
|
boolean |
supportsInterceptionOnProducers() |
public static final String CONVERSATION_TIMEOUT_INTERVAL
public static final String ALLOW_PROXYING_PARAM
public static final String INTERCEPTOR_FORCE_NO_CHECKED_EXCEPTIONS
PostConstruct and
PreDestroy must not define a checked Exception
regarding to the spec. But this is often unnecessary restrictive so we
allow to disable this check application wide.public static final String STRICT_DYNAMIC_VALIDATION
public static final String FAST_MATCHING
public static final String USE_EJB_DISCOVERY
public static final String CONTAINER_LIFECYCLE
public static final String JNDI_SERVICE
public static final String SCANNER_SERVICE
public static final String CONTEXTS_SERVICE
public static final String CONVERSATION_SERVICE
public static final String RESOURCE_INJECTION_SERVICE
public static final String SECURITY_SERVICE
public static final String VALIDATOR_SERVICE
public static final String TRANSACTION_SERVICE
public static final String APPLICATION_IS_JSP
public static final String APPLICATION_SUPPORTS_CONVERSATION
public static final String PRODUCER_INTERCEPTION_SUPPORT
public static final String EL_ADAPTOR_SERVICE
public static final String PROXY_MAPPING_PREFIX
org.apache.webbeans.proxy.mapping.javax.enterprise.context.ApplicationScoped=org.apache.webbeans.intercept.ApplicationScopedBeanInterceptorHandler org.apache.webbeans.proxy.mapping.javax.enterprise.context.RequestScoped=org.apache.webbeans.intercept.RequestScopedBeanInterceptorHandler org.apache.webbeans.proxy.mapping.javax.enterprise.context.SessionScoped=org.apache.webbeans.intercept.SessionScopedBeanInterceptorHandler
public static final String USE_BDA_BEANSXML_SCANNER
public static final String SCAN_EXCLUSION_PATHS
public static final String SCAN_ONLY_BEANS_XML_JARS
false.
This might be switched on to improve boot time in cases where you always have beans.xml in
your jars or classpath entries.public static final String IGNORED_INTERFACES
public static final String IGNORED_EXTENSIONS
public static final String SCAN_EXTENSION_JARS
public static final String EAGER_SESSION_INITIALISATION
public static final String GENERATOR_JAVA_VERSION
public OpenWebBeansConfiguration(Properties properties)
properties - public OpenWebBeansConfiguration()
public void parseConfiguration()
throws WebBeansConfigurationException
public List<String> splitValues(String commaSeparatedVals)
public String getProperty(String key)
key - nullpublic String getProperty(String key, String defaultValue)
key - defaultValue - nullpublic void setProperty(String key, Object value)
key - property namevalue - property valuepublic boolean isJspApplication()
public boolean supportsConversation()
public boolean scanOnlyBeansXmlJars()
falsepublic boolean strictDynamicValidation()
falsepublic boolean getScanExtensionJars()
public Set<String> getConfigListValues(String keyName)
public void addConfigListValue(String keyName, String value)
public boolean supportsInterceptionOnProducers()
public String getGeneratorJavaVersion()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.