org.apache.openejb.util
Class PropertiesService
java.lang.Object
org.apache.openejb.util.PropertiesService
public class PropertiesService
- extends Object
Manages properties so any property modifications are handled here.
It lets us track the properties used and possibly remove some. They are all
scattered in many places and it's so hard to keep track of them.
The class holds all OpenEJB properties and optionally can amend the
environment.
The aim of this class is to establish one place to keep the properties and
eventually remove the need to set System properties to communicate between
parts and possibly yet lay out a foundation for setting them up in JNDI or
some other means
TODO: Should this class be concerned with concurrency issues?
- Version:
- $Rev: 808273 $ $Date: 2009-08-27 05:42:06 +0200 (Do, 27. Aug 2009) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesService
public PropertiesService()
setProperty
public String setProperty(String name,
String value)
- Set value to a property. Optionally set System property via
System.setProperty(String, String)
- Parameters:
name
- property namevalue
- property value
- Returns:
- previous property value or null if the value hasn't been assigned
yet
getProperty
public String getProperty(String name)
isSet
public boolean isSet(String name)
- ISSUE: It might be of help to differentiate between unavailable property
and boolean property set to false
- Parameters:
name
- property name
- Returns:
- true if property keyed by name is set; false otherwise
putAll
public void putAll(Properties props)
getProperties
public Properties getProperties()
isPassOn
public boolean isPassOn()
setPassOn
public void setPassOn(boolean passOn)
isQueryEnvOnInit
public boolean isQueryEnvOnInit()
setQueryEnvOnInit
public void setQueryEnvOnInit(boolean queryEnvOnInit)
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.