org.jboss.cdi.tck.impl
Class PropertiesBasedConfigurationBuilder
java.lang.Object
org.jboss.cdi.tck.impl.PropertiesBasedConfigurationBuilder
public class PropertiesBasedConfigurationBuilder
- extends Object
CDI TCK configuration builder.
Mostly based on jboss-test-harness code from org.jboss.testharness.impl.PropertiesBasedConfigurationBuilder and
org.jboss.testharness.properties.PropertiesManager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_BUNDLE
public static final String RESOURCE_BUNDLE
- See Also:
- Constant Field Values
PropertiesBasedConfigurationBuilder
public PropertiesBasedConfigurationBuilder()
getConfiguration
public Configuration getConfiguration()
- Returns:
- built configuration
init
public PropertiesBasedConfigurationBuilder init(boolean deploymentPhase)
- Parameters:
deploymentPhase - Deployment phase (building test archive) initialization includes deployment specific properties
- Returns:
- initialized self
getPropertyValues
public Set<String> getPropertyValues(String key)
- Get a list of possible values for a given key.
First, System properties are tried, followed by the specified resource bundle (first in classpath only).
- Parameters:
key - The key to search for
- Returns:
- A list of possible values. An empty list is returned if there are no matches.
getStringValue
public String getStringValue(String propertyName,
String defaultValue,
boolean required)
- Parameters:
propertyName - defaultValue - required -
- Returns:
getResources
public Enumeration<URL> getResources(String name)
throws IOException
- Parameters:
name -
- Returns:
-
- Throws:
IOException
getInstanceValue
protected <T> T getInstanceValue(String propertyName,
Class<T> expectedType,
boolean required)
- Type Parameters:
T - - Parameters:
propertyName - expectedType - required -
- Returns:
getClassValue
protected <T> Class<T> getClassValue(String propertyName,
Class<T> expectedType,
boolean required)
- Type Parameters:
T - - Parameters:
propertyName - expectedType - required -
- Returns:
Copyright © 2008-2013 Seam Framework. All Rights Reserved.