org.mactor.framework.spec
Class ProjectContext
java.lang.Object
org.mactor.framework.spec.ProjectContext
public class ProjectContext
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectContext
public ProjectContext()
getGlobalInstance
public static ProjectContext getGlobalInstance()
getProjectName
public java.lang.String getProjectName()
getAbsolutePath
public java.io.File getAbsolutePath(java.lang.String relativePath)
getRelativePath
public java.lang.String getRelativePath(java.io.File path)
readFromFile
public org.dom4j.Document readFromFile(java.lang.String name,
boolean isConfigFile)
throws MactorException
- Throws:
MactorException
readFromFile
public org.dom4j.Document readFromFile(java.io.File path)
throws MactorException
- Throws:
MactorException
writeDocumentToFile
public void writeDocumentToFile(java.io.File file,
org.dom4j.Document doc)
throws MactorException
- Throws:
MactorException
writeStringToFile
public java.io.File writeStringToFile(java.lang.String name,
java.lang.String content,
boolean isConfigFile)
throws MactorException
- Throws:
MactorException
readStringFromFile
public java.lang.String readStringFromFile(java.lang.String name,
boolean isConfigFile)
throws MactorException
- Throws:
MactorException
renameFile
public java.io.File renameFile(java.io.File oldFile,
java.lang.String newFilename)
throws MactorException
- Throws:
MactorException
duplicateFile
public java.io.File duplicateFile(java.io.File file)
throws MactorException
- Throws:
MactorException
deleteFile
public void deleteFile(java.io.File file)
throws MactorException
- Throws:
MactorException
getNextFilename
public java.lang.String getNextFilename(java.lang.String filename,
boolean isConfigFile)
getProjectDir
public java.io.File getProjectDir()
getProjectConfigDir
public java.io.File getProjectConfigDir()
setProjectDir
public void setProjectDir(java.io.File dir)
setGlobalConfigName
public void setGlobalConfigName(java.lang.String globalConfigName)
setMessageBrokerConfigName
public void setMessageBrokerConfigName(java.lang.String messageBrokerConfigName)
setProjectConfigDir
public void setProjectConfigDir(java.io.File projectConfigDir)
loadGlobalConfig
public GlobalConfig loadGlobalConfig()
throws MactorException
- Throws:
MactorException
loadMessageBrokersConfig
public MessageBrokersConfig loadMessageBrokersConfig()
throws MactorException
- Throws:
MactorException
getGlobalConfigName
public java.lang.String getGlobalConfigName()
getMessageBrokerConfigName
public java.lang.String getMessageBrokerConfigName()
isDirty
public boolean isDirty()
setDirty
public void setDirty(boolean dirty)
getListener
public ProjectContext.ProjectContextListener getListener()
setListener
public void setListener(ProjectContext.ProjectContextListener listener)
Copyright © 2008. All Rights Reserved.