public class JacORBConfiguration extends Object implements Configuration
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String key)
Returns the value of the configuration attribute with the given key.
|
String |
getAttribute(String key,
String defaultValue)
Returns the value of the configuration attribute with the given key.
|
boolean |
getAttributeAsBoolean(String key) |
boolean |
getAttributeAsBoolean(String key,
boolean defaultValue) |
int |
getAttributeAsInteger(String key)
Returns the value of the configuration attribute with the given key,
as an integer.
|
int |
getAttributeAsInteger(String key,
int defaultValue)
Returns the value of the configuration attribute with the given key,
as an integer.
|
long |
getAttributeAsLong(String key,
long defaultValue)
Returns the value of the configuration attribute with the given key,
as a long value.
|
Object |
getAttributeAsObject(String key)
Create an object from the given property.
|
Object |
getAttributeAsObject(String key,
String defaultClass) |
List |
getAttributeList(String key)
For a property that has a list of comma-separated values,
this method returns these values as a list of Strings.
|
String[] |
getAttributeNames() |
List |
getAttributeNamesWithPrefix(String prefix)
return all attribute names that start
with the specified prefix
|
static Configuration |
getConfiguration(Properties props,
ORB orb,
boolean isApplet)
Factory method
|
org.slf4j.Logger |
getLogger(String name)
Returns a Logger that logs JacORB system messages.
|
String |
getLoggerName(Class clz) |
ORB |
getORB() |
void |
setAttribute(String key,
String value)
Sets the value of a single attribute.
|
public static Configuration getConfiguration(Properties props, ORB orb, boolean isApplet) throws ConfigurationException
ConfigurationExceptionpublic void setAttribute(String key, String value)
setAttribute in interface Configurationpublic ORB getORB()
getORB in interface Configurationpublic org.slf4j.Logger getLogger(String name)
getLogger in interface Configurationname - the name of the logger, which also functions
as a log categorypublic String getLoggerName(Class clz)
getLoggerName in interface Configurationpublic String getAttribute(String key)
ConfigurationgetAttribute in interface ConfigurationConfiguration.getAttribute(java.lang.String)public String getAttribute(String key, String defaultValue)
ConfigurationgetAttribute in interface ConfigurationConfiguration.getAttribute(java.lang.String, java.lang.String)public int getAttributeAsInteger(String key, int defaultValue)
ConfigurationgetAttributeAsInteger in interface ConfigurationConfiguration.getAttributeAsInteger(java.lang.String, int)public int getAttributeAsInteger(String key)
ConfigurationgetAttributeAsInteger in interface ConfigurationConfiguration.getAttributeAsInteger(java.lang.String)public long getAttributeAsLong(String key, long defaultValue)
ConfigurationgetAttributeAsLong in interface ConfigurationConfiguration.getAttributeAsLong(java.lang.String, long)public List getAttributeList(String key)
ConfigurationgetAttributeList in interface ConfigurationConfiguration.getAttributeList(java.lang.String)public Object getAttributeAsObject(String key) throws ConfigurationException
ConfigurationgetAttributeAsObject in interface ConfigurationConfigurationExceptionConfiguration.getAttributeAsObject(java.lang.String)public Object getAttributeAsObject(String key, String defaultClass) throws ConfigurationException
getAttributeAsObject in interface ConfigurationConfigurationExceptionConfiguration.getAttributeAsObject(java.lang.String, java.lang.String)public boolean getAttributeAsBoolean(String key) throws ConfigurationException
getAttributeAsBoolean in interface ConfigurationConfigurationExceptionConfiguration.getAttributeAsBoolean(java.lang.String)public boolean getAttributeAsBoolean(String key, boolean defaultValue)
getAttributeAsBoolean in interface ConfigurationConfiguration.getAttributeAsBoolean(java.lang.String, boolean)public String[] getAttributeNames()
public List getAttributeNamesWithPrefix(String prefix)
ConfigurationgetAttributeNamesWithPrefix in interface ConfigurationConfiguration.getAttributeNamesWithPrefix(java.lang.String)Copyright © 2017 JacORB. All rights reserved.