org.apache.openejb.util
Class PropertiesService
java.lang.Object
org.apache.openejb.util.PropertiesService
public class PropertiesService
- extends java.lang.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) $
Method Summary |
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String name)
|
boolean |
isPassOn()
|
boolean |
isQueryEnvOnInit()
|
boolean |
isSet(java.lang.String name)
ISSUE: It might be of help to differentiate between unavailable property
and boolean property set to false |
void |
putAll(java.util.Properties props)
|
void |
setPassOn(boolean passOn)
|
java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
Set value to a property. |
void |
setQueryEnvOnInit(boolean queryEnvOnInit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesService
public PropertiesService()
setProperty
public java.lang.String setProperty(java.lang.String name,
java.lang.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 java.lang.String getProperty(java.lang.String name)
isSet
public boolean isSet(java.lang.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(java.util.Properties props)
getProperties
public java.util.Properties getProperties()
isPassOn
public boolean isPassOn()
setPassOn
public void setPassOn(boolean passOn)
isQueryEnvOnInit
public boolean isQueryEnvOnInit()
setQueryEnvOnInit
public void setQueryEnvOnInit(boolean queryEnvOnInit)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.