com.anwrt.anycontent.deploy
Class Deploy

java.lang.Object
  extended bycom.anwrt.anycontent.deploy.Deploy

public final class Deploy
extends java.lang.Object

Deployement bean
Reads/Write deploy.xml file.


Method Summary
static void dispose()
          Dispose this Deploy instance
static Deploy getInstance()
          Get the instance of deploy using the deploy file.
 java.lang.Boolean getValueAsBoolean(java.lang.String id)
          Return the typed value as boolean
 java.util.Date getValueAsDate(java.lang.String id)
          Return the typed value as Date
 java.lang.Double getValueAsDouble(java.lang.String id)
          Return the typed value casted in double
 java.lang.Long getValueAsLong(java.lang.String id)
          Return the typed value as long
 java.lang.String getValueAsString(java.lang.String id)
          Return the typed value as String
static java.util.Map read()
          Read deploy file and get untyped values (String object)
static void setFilename(java.lang.String filename)
          Set the deploy filename
static void setInitialized(boolean initialized)
          Set the initialization status of the deployment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Deploy getInstance()
Get the instance of deploy using the deploy file.

Returns:
An instance of deploy containing deploy file value, or null if deploy file cannot be read.
Throws:
java.lang.IllegalStateException - if the extension point 'deploy' is not set

dispose

public static void dispose()
Dispose this Deploy instance


setFilename

public static void setFilename(java.lang.String filename)
Set the deploy filename

Parameters:
filename - Name with path of the deploy file

setInitialized

public static void setInitialized(boolean initialized)
Set the initialization status of the deployment

Parameters:
initialized - the initialization status of the deployment

getValueAsString

public java.lang.String getValueAsString(java.lang.String id)
Return the typed value as String

Parameters:
id - Id of the parameter to get
Returns:
the typed value as String

getValueAsDate

public java.util.Date getValueAsDate(java.lang.String id)
Return the typed value as Date

Parameters:
id - Id of the parameter to get
Returns:
the typed value as Date

getValueAsLong

public java.lang.Long getValueAsLong(java.lang.String id)
Return the typed value as long

Parameters:
id - Id of the parameter to get
Returns:
the typed value as long

getValueAsBoolean

public java.lang.Boolean getValueAsBoolean(java.lang.String id)
Return the typed value as boolean

Parameters:
id - Id of the parameter to get
Returns:
the typed value as boolean

getValueAsDouble

public java.lang.Double getValueAsDouble(java.lang.String id)
Return the typed value casted in double

Parameters:
id - Id of the parameter to get
Returns:
the typed value casted in double

read

public static java.util.Map read()
                          throws java.lang.Exception
Read deploy file and get untyped values (String object)

Returns:
Map (key, untyped value) representing the deploy file
Throws:
java.lang.Exception - if a problem occurs reading values


Copyright © 2006 Anyware Technologies. All Rights Reserved.