|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.container.property.ResourceConverter
public class ResourceConverter
A Resource is a representation of an object bound to JNDI. This converter will take a property and convert it to a Resource and visa versa.
| Constructor Summary | |
|---|---|
ResourceConverter()
|
|
| Method Summary | |
|---|---|
Resource |
fromProperties(java.util.Properties properties)
Construct a Resource from a list of properties. |
Resource |
fromPropertyString(java.lang.String resourceInformation)
Construct a Resource from a single String. |
java.lang.String |
getParametersAsASemicolonDelimitedString(Resource data)
tests to see if the value is null before attempting to join the database properties on a semicolon. |
java.util.Properties |
toProperties(Resource data)
Get a properties object containing all of the members of this Resource object. |
java.lang.String |
toPropertyString(Resource data)
Get a string representation of this Resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceConverter()
| Method Detail |
|---|
public Resource fromPropertyString(java.lang.String resourceInformation)
CreateDatabase=create;DatabaseName=TEST.
resourceInformation - A string, really a list of properties, representing a Resource
PropertyUtils.splitPropertiesOnPipe(String)public Resource fromProperties(java.util.Properties properties)
properties - A list of properties representing this Resource
PropertyUtils.splitPropertiesOnPipe(String)public java.lang.String toPropertyString(Resource data)
data - the Resource we are serializing
PropertyUtils#joinPropertiesOnPipe(java.util.Properties)public java.util.Properties toProperties(Resource data)
data - the Resource we are serializing
public java.lang.String getParametersAsASemicolonDelimitedString(Resource data)
data - the Resource we are serializing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||