|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.boot.ConfigurationTools
public class ConfigurationTools
A class with utility functions for processing configuration files
| Field Summary | |
|---|---|
static java.lang.String |
URLSeparator
|
| Constructor Summary | |
|---|---|
ConfigurationTools()
|
|
| Method Summary | |
|---|---|
static void |
attachConfigurationProperties(java.lang.Object obj,
java.util.Properties p)
|
static void |
attachParameter(java.lang.Object object,
Parameter param)
Sets the specified property of the given object. |
static java.lang.Object |
callMethod(java.lang.Object object,
java.lang.String methodName)
Calls a method with no parameters |
static java.lang.Object |
callMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object argument)
Calls a method on the specified object |
static java.lang.Object |
callMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.String argumentClass,
java.lang.Object argument)
Calls a method on the specified object that takes a single parameter |
static java.lang.Object |
createInstance(Instance inst)
Creates an object instance and sets up its custom parameters |
static java.lang.Object |
createInstance(java.lang.String className)
|
static java.security.PrivateKey |
decodePrivateKey(CryptoKey data)
Decodes a private key |
static java.security.PublicKey |
decodePublicKey(CryptoKey data)
Decodes a public key |
static java.lang.Object |
getObject(Parameter param)
Extracts an object from a Parameter bean |
static java.util.Properties |
getProperties(Properties beanProperties)
|
static java.util.Properties |
getProperties(SimpleParameters param)
Converts a boot.beans.SimpleParameters to java.util.Properties |
static ResourceData |
getResourceData(Rdata beanRData)
Converts a boot.beans.Rdata to slices.ResourceData |
static ResourceSet |
getResourceSet(Rset rset)
Converts a boot.beans.Rset to slices.ResourceSet |
static java.lang.String |
getURLPath(java.lang.String path)
|
static java.util.Properties |
loadProperties(java.lang.String location)
Loads data from a properties file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String URLSeparator
| Constructor Detail |
|---|
public ConfigurationTools()
| Method Detail |
|---|
public static java.security.PublicKey decodePublicKey(CryptoKey data)
throws java.lang.Exception
data - The CryptoKey bean
java.lang.Exception
public static java.security.PrivateKey decodePrivateKey(CryptoKey data)
throws java.lang.Exception
data - The CryptoKey bean
java.lang.Exceptionpublic static java.util.Properties getProperties(SimpleParameters param)
param - The SimpleParameters bean
public static ResourceData getResourceData(Rdata beanRData)
beanRData -
public static ResourceSet getResourceSet(Rset rset)
rset - The Rset bean
public static java.lang.Object callMethod(java.lang.Object object,
java.lang.String methodName)
throws java.lang.Exception
object - The object to make the call onmethodName - The method name
java.lang.Exception
public static java.lang.Object callMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.String argumentClass,
java.lang.Object argument)
throws java.lang.Exception
object - The objectmethodName - The name of the method to be calledargumentClass - The name of the class of the argumentargument - The argument
java.lang.Exception
public static java.lang.Object callMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object argument)
throws java.lang.Exception
object - The objectmethodName - The name of the method to be calledargumentClass - The class of the argumentargument - The argument
java.lang.Exception
public static java.lang.Object getObject(Parameter param)
throws java.lang.Exception
param - The parameter bean
java.lang.Exception
public static void attachParameter(java.lang.Object object,
Parameter param)
throws java.lang.Exception
object - The objectparam - Parameter desciption
java.lang.Exception
public static java.util.Properties loadProperties(java.lang.String location)
throws java.lang.Exception
location - The file path
java.lang.Exceptionpublic static java.util.Properties getProperties(Properties beanProperties)
public static java.lang.Object createInstance(java.lang.String className)
throws java.lang.Exception
java.lang.Exception
public static void attachConfigurationProperties(java.lang.Object obj,
java.util.Properties p)
throws java.lang.Exception
java.lang.Exception
public static java.lang.Object createInstance(Instance inst)
throws java.lang.Exception
inst -
java.lang.Exception
public static java.lang.String getURLPath(java.lang.String path)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||