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
ConfigurationException
public void setAttribute(String key, String value)
setAttribute
in interface Configuration
public ORB getORB()
getORB
in interface Configuration
public org.slf4j.Logger getLogger(String name)
getLogger
in interface Configuration
name
- the name of the logger, which also functions
as a log categorypublic String getLoggerName(Class clz)
getLoggerName
in interface Configuration
public String getAttribute(String key)
Configuration
getAttribute
in interface Configuration
Configuration.getAttribute(java.lang.String)
public String getAttribute(String key, String defaultValue)
Configuration
getAttribute
in interface Configuration
Configuration.getAttribute(java.lang.String, java.lang.String)
public int getAttributeAsInteger(String key, int defaultValue)
Configuration
getAttributeAsInteger
in interface Configuration
Configuration.getAttributeAsInteger(java.lang.String, int)
public int getAttributeAsInteger(String key)
Configuration
getAttributeAsInteger
in interface Configuration
Configuration.getAttributeAsInteger(java.lang.String)
public long getAttributeAsLong(String key, long defaultValue)
Configuration
getAttributeAsLong
in interface Configuration
Configuration.getAttributeAsLong(java.lang.String, long)
public List getAttributeList(String key)
Configuration
getAttributeList
in interface Configuration
Configuration.getAttributeList(java.lang.String)
public Object getAttributeAsObject(String key) throws ConfigurationException
Configuration
getAttributeAsObject
in interface Configuration
ConfigurationException
Configuration.getAttributeAsObject(java.lang.String)
public Object getAttributeAsObject(String key, String defaultClass) throws ConfigurationException
getAttributeAsObject
in interface Configuration
ConfigurationException
Configuration.getAttributeAsObject(java.lang.String, java.lang.String)
public boolean getAttributeAsBoolean(String key) throws ConfigurationException
getAttributeAsBoolean
in interface Configuration
ConfigurationException
Configuration.getAttributeAsBoolean(java.lang.String)
public boolean getAttributeAsBoolean(String key, boolean defaultValue)
getAttributeAsBoolean
in interface Configuration
Configuration.getAttributeAsBoolean(java.lang.String, boolean)
public String[] getAttributeNames()
public List getAttributeNamesWithPrefix(String prefix)
Configuration
getAttributeNamesWithPrefix
in interface Configuration
Configuration.getAttributeNamesWithPrefix(java.lang.String)
Copyright © 2016 JacORB. All rights reserved.