org.sca4j.host.runtime
Class AbstractHostInfo

java.lang.Object
  extended by org.sca4j.host.runtime.AbstractHostInfo
All Implemented Interfaces:
HostInfo

public abstract class AbstractHostInfo
extends java.lang.Object
implements HostInfo


Field Summary
 
Fields inherited from interface org.sca4j.host.runtime.HostInfo
HOST_CONFIG_DIR
 
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
 

Constructor Detail

AbstractHostInfo

public AbstractHostInfo(java.net.URI domain,
                        java.util.Properties properties)
Method Detail

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 property
value - 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 property
defaultValue - default value to return if the property is not defined
Returns:
the value of the named property


Copyright © 2008-2010 Service Symphony. All Rights Reserved.