org.sca4j.host.runtime
Class AbstractHostInfo
java.lang.Object
org.sca4j.host.runtime.AbstractHostInfo
- All Implemented Interfaces:
- HostInfo
public abstract class AbstractHostInfo
- extends java.lang.Object
- implements HostInfo
|
Constructor Summary |
AbstractHostInfo(java.net.URI domain,
java.util.Properties properties)
|
|
Method Summary |
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a new property. |
java.net.URI |
getDomain()
Returns the SCA domain associated with this runtime. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Return the value of the named property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHostInfo
public AbstractHostInfo(java.net.URI domain,
java.util.Properties properties)
addProperty
public void addProperty(java.lang.String name,
java.lang.String value)
- Description copied from interface:
HostInfo
- Adds a new property.
- Specified by:
addProperty in interface HostInfo
- Parameters:
name - the name of the propertyvalue - the value of the property- See Also:
HostInfo.addProperty(java.lang.String, java.lang.String)
getDomain
public java.net.URI getDomain()
- Description copied from interface:
HostInfo
- Returns the SCA domain associated with this runtime. A null domain indicates that this is a standalone runtime with a self-contained domain.
- Specified by:
getDomain in interface HostInfo
- Returns:
- the SCA domain associated with this runtime; may be null
getProperty
public java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
- Description copied from interface:
HostInfo
- Return the value of the named property.
- Specified by:
getProperty in interface HostInfo
- Parameters:
name - the name of the propertydefaultValue - default value to return if the property is not defined
- Returns:
- the value of the named property
Copyright © 2008-2011 Service Symphony. All Rights Reserved.