|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.common.FrameworkResource
public class FrameworkResource
Represents a generic framework resource. Each resoure has a name, a base directory and a set of properties.
Field Summary | |
---|---|
static java.lang.String |
VALID_RESOURCE_NAME_REGEX
|
Constructor Summary | |
---|---|
FrameworkResource(java.lang.String name,
java.io.File dir,
IFrameworkResourceParent parent)
Constructor |
Method Summary | |
---|---|
java.io.File |
getBaseDir()
getter to baseDir |
protected org.apache.log4j.Logger |
getLogger()
|
java.lang.String |
getName()
getter to name property |
IFrameworkResourceParent |
getParent()
Get the parent of this resource |
boolean |
isValid()
|
protected void |
storeProperties(java.util.Properties props,
java.io.File file)
Store properties to disk |
java.lang.String |
toString()
basic to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALID_RESOURCE_NAME_REGEX
Constructor Detail |
---|
public FrameworkResource(java.lang.String name, java.io.File dir, IFrameworkResourceParent parent)
name
- Name of resourcedir
- Base directory of resourceparent
- The parent resourceMethod Detail |
---|
protected org.apache.log4j.Logger getLogger()
public java.lang.String getName()
getName
in interface IFrameworkResource
public java.io.File getBaseDir()
getBaseDir
in interface IFrameworkResource
public IFrameworkResourceParent getParent()
IFrameworkResource
getParent
in interface IFrameworkResource
public boolean isValid()
isValid
in interface IFrameworkResource
public java.lang.String toString()
toString
in class java.lang.Object
protected void storeProperties(java.util.Properties props, java.io.File file) throws java.io.IOException
props
- Properties to storefile
- File to write property data to
java.io.IOException
- thrown if file not found or can't write to file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |