com.caucho.config.type
Class PathType

java.lang.Object
  extended by com.caucho.config.type.ConfigType<Path>
      extended by com.caucho.config.type.PathType

public class PathType
extends ConfigType<Path>


Field Summary
static PathType TYPE
           
 
Method Summary
 java.lang.Class<Path> getType()
          Returns the path class.
static Path lookupPath(java.lang.String string)
           
static Path lookupPath(java.lang.String string, ELContext env)
           
static Path lookupPath(java.lang.String string, ELContext env, Path pwd)
           
static java.lang.String rewritePathString(java.lang.String pathName)
          Rewrites the path string into proper JSP EL.
 java.lang.Object valueOf(java.lang.Object value)
          Converts the value to a value of the type.
 java.lang.Object valueOf(java.lang.String text)
          Returns the type's configured value
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigure, beforeConfigureBean, carefulIntrospect, create, createType, getAddAttribute, getAddBeanAttribute, getAttribute, getComponentType, getConstructor, getContentProgramAttribute, getDefaultAttribute, getProgramAttribute, getType, getTypeName, init, inject, introspect, isArray, isBean, isConstructableFromString, isEL, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, isReplace, replaceObject, setEnvBean, setProperty, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final PathType TYPE
Method Detail

getType

public java.lang.Class<Path> getType()
Returns the path class.

Specified by:
getType in class ConfigType<Path>

valueOf

public java.lang.Object valueOf(java.lang.String text)
Returns the type's configured value

Specified by:
valueOf in class ConfigType<Path>
Parameters:
builder - the context builder
node - the configuration node
parent -

valueOf

public java.lang.Object valueOf(java.lang.Object value)
Converts the value to a value of the type.

Overrides:
valueOf in class ConfigType<Path>

lookupPath

public static Path lookupPath(java.lang.String string)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              ELContext env)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              ELContext env,
                              Path pwd)
                       throws ELException
Throws:
ELException

rewritePathString

public static java.lang.String rewritePathString(java.lang.String pathName)
Rewrites the path string into proper JSP EL. Returns the native path for a configured path name. The special cases $app-dir and $resin-home specify the root directory.

Returns:
a real path corresponding to the path name