|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.config.OpenWebBeansConfiguration
public class OpenWebBeansConfiguration
Defines configuration for OpenWebBeans. The algorithm is easy:
| Field Summary | |
|---|---|
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_PERIODIC_DELAY
Conversation periodic delay in ms. |
static String |
CONVERSATION_SERVICE
Conversation Service |
static String |
CONVERSATION_TIMEOUT_INTERVAL
Timeout interval in ms |
static String |
EL_ADAPTOR_CLASS
EL Adaptor |
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 |
PROXY_MAPPING_PREFIX
prefix followed by the fully qualified scope name, for configuring InterceptorHandlers for our proxies. |
static String |
RESOURCE_INJECTION_SERVICE
Resource Injection Service |
static String |
SCANNER_SERVICE
Scanner Service |
static String |
SECURITY_SERVICE
Security Service |
static String |
TRANSACTION_SERVICE
Transaction Service |
static String |
USE_BDA_BEANSXML_SCANNER
Use BDABeansXmlScanner to determine if interceptors, decorators, and alternatives are enabled in the beans.xml of a given BDA. |
static String |
USE_EJB_DISCOVERY
Use EJB Discovery or not |
static String |
USE_EJBINTERCEPTOR_ACTIVATION
Use of EJB interceptor to activate EJB contexts |
static String |
USE_EJBINTERCEPTOR_INJECTION
Use of EJB interceptor to inject EJBs |
static String |
USE_JSF2_EXTENSIONS
Use of JSF2 extensions |
static String |
VALIDATOR_SERVICE
Validator Service |
| Constructor Summary | |
|---|---|
OpenWebBeansConfiguration()
Parse configuration. |
|
OpenWebBeansConfiguration(Properties properties)
you can configure this externally as well. |
|
| Method Summary | |
|---|---|
Set<String> |
getIgnoredInterfaces()
|
String |
getProperty(String key)
Gets property. |
String |
getProperty(String key,
String defaultValue)
Gets property value. |
boolean |
isJspApplication()
Gets jsp property. |
boolean |
isUseEJBInterceptorActivation()
Gets EJB context activation property. |
boolean |
isUseEJBInterceptorInjection()
Gets EJB injection property. |
boolean |
isUseJSF2Extensions()
Return true if use JSF2. |
void |
parseConfiguration()
(re)read the configuration from the resources in the classpath. |
void |
setProperty(String key,
Object value)
Sets given property. |
boolean |
supportsConversation()
Gets conversation supports property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONVERSATION_PERIODIC_DELAY
public static final String CONVERSATION_TIMEOUT_INTERVAL
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 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 USE_JSF2_EXTENSIONS
public static final String USE_EJBINTERCEPTOR_INJECTION
public static final String USE_EJBINTERCEPTOR_ACTIVATION
public static final String EL_ADAPTOR_CLASS
public static final String PROXY_MAPPING_PREFIX
public static final String USE_BDA_BEANSXML_SCANNER
public static final String IGNORED_INTERFACES
| Constructor Detail |
|---|
public OpenWebBeansConfiguration(Properties properties)
properties - public OpenWebBeansConfiguration()
| Method Detail |
|---|
public void parseConfiguration()
throws WebBeansConfigurationException
WebBeansConfigurationExceptionDEFAULT_CONFIG_PROPERTIES_NAME,
DEFAULT_CONFIG_PROPERTIES_NAMEpublic String getProperty(String key)
key -
null
public String getProperty(String key,
String defaultValue)
key - defaultValue -
null
public void setProperty(String key,
Object value)
key - property namevalue - property valuepublic boolean isUseJSF2Extensions()
public boolean isJspApplication()
public boolean supportsConversation()
public boolean isUseEJBInterceptorInjection()
public boolean isUseEJBInterceptorActivation()
public Set<String> getIgnoredInterfaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||