Anyframe Core

anyframe.core.properties
Interface IPropertiesService


public interface IPropertiesService

This service enables applications to approach the value of singular key Containig the pairs of key-value internally. It enhances the flexibility through managing the information for system environment. It is not needed for EJB components because they present the functions originally.

Author:
SoYon Lim, JongHoon Kim

Field Summary
static Log LOGGER
           
 
Method Summary
 boolean getBoolean(String name)
          The purpose of this method is to get the configuration resource with the given name as a boolean value.
 boolean getBoolean(String name, boolean def)
          The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value.
 double getDouble(String name)
          The purpose of this method is to get the configuration resource with the given name as a double.
 double getDouble(String name, double def)
          The purpose of this method is to get the configuration resource with the given name as a double, or a default value.
 float getFloat(String name)
          The purpose of this method is to get the configuration resource with the given name as a float.
 float getFloat(String name, float def)
          The purpose of this method is to get the configuration resource with the given name as a float, or a default value.
 int getInt(String name)
          The purpose of this method is to get the configuration resource with the given name as an integer.
 int getInt(String name, int def)
          占쌍억옙占쏙옙 占싱몌옙占쏙옙 configuration resource占쏙옙 integer 占쏙옙占싱놂옙 default integer 占쏙옙8占쏙옙 return占싹댐옙 占쌨쏙옙占�?
 Iterator getKeys()
          Get the list of the keys contained in the configuration repository.
 Iterator getKeys(String prefix)
          Get the list of the keys contained in the configuration repository that match the specified prefix.
 long getLong(String name)
          The purpose of this method is to get the configuration resource with the given name as a long.
 long getLong(String name, long def)
          The purpose of this method is to get the configuration resource with the given name as a long, or a default value.
 String getString(String name)
          The purpose of this method is to get the configuration resource with the given name as a string .
 String getString(String name, String def)
          The purpose of this method is to get the configuration resource with the given name as a string , or a default value.
 String[] getStringArray(String name)
          The purpose of this method is to get the configuration resource with the given name as a string array .
 Vector getVector(String name)
          The purpose of this method is to get the configuration resource with the given name as a vector .
 Vector getVector(String name, Vector def)
          The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.
 void refreshPropertyFiles()
          The purpose of this method is to refresh the configuration resource if some configuration resources is changed.
 

Field Detail

LOGGER

static final Log LOGGER
Method Detail

getBoolean

boolean getBoolean(String name)
The purpose of this method is to get the configuration resource with the given name as a boolean value.

Parameters:
name - The resource name.
Returns:
The value of the named resource as a boolean.

getBoolean

boolean getBoolean(String name,
                   boolean def)
The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a boolean.

getDouble

double getDouble(String name)
The purpose of this method is to get the configuration resource with the given name as a double.

Parameters:
name - The resource name.
Returns:
The value of the named resource as a double.

getDouble

double getDouble(String name,
                 double def)
The purpose of this method is to get the configuration resource with the given name as a double, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a double.

getFloat

float getFloat(String name)
The purpose of this method is to get the configuration resource with the given name as a float.

Parameters:
name - The resource name.
Returns:
The value of the named resource as a float.

getFloat

float getFloat(String name,
               float def)
The purpose of this method is to get the configuration resource with the given name as a float, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a float.

getInt

int getInt(String name)
The purpose of this method is to get the configuration resource with the given name as an integer.

Parameters:
name - The resource name.
Returns:
The value of the named resource as an integer.

getInt

int getInt(String name,
           int def)
占쌍억옙占쏙옙 占싱몌옙占쏙옙 configuration resource占쏙옙 integer 占쏙옙占싱놂옙 default integer 占쏙옙8占쏙옙 return占싹댐옙 占쌨쏙옙占�? The purpose of this method is to get the configuration resource with the given name as an integer, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as an integer.

getKeys

Iterator getKeys()
Get the list of the keys contained in the configuration repository.

Returns:
An Iterator with all the keys.

getKeys

Iterator getKeys(String prefix)
Get the list of the keys contained in the configuration repository that match the specified prefix.

Parameters:
prefix - A String prefix to test against.
Returns:
An Iterator of keys that match the prefix.

getLong

long getLong(String name)
The purpose of this method is to get the configuration resource with the given name as a long.

Parameters:
name - The resource name.
Returns:
The value of the named resource as a long.

getLong

long getLong(String name,
             long def)
The purpose of this method is to get the configuration resource with the given name as a long, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a long.

getString

String getString(String name)
The purpose of this method is to get the configuration resource with the given name as a string .

Parameters:
name - The resource name.
Returns:
The value of the named resource as a string .

getString

String getString(String name,
                 String def)
The purpose of this method is to get the configuration resource with the given name as a string , or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a string .

getStringArray

String[] getStringArray(String name)
The purpose of this method is to get the configuration resource with the given name as a string array .

Parameters:
name - The resource name.
Returns:
The value of the named resource as a string array.

getVector

Vector getVector(String name)
The purpose of this method is to get the configuration resource with the given name as a vector .

Parameters:
name - The resource name.
Returns:
The value of the named resource as a vector .

getVector

Vector getVector(String name,
                 Vector def)
The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a vector .

refreshPropertyFiles

void refreshPropertyFiles()
The purpose of this method is to refresh the configuration resource if some configuration resources is changed.


Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.