|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.datastore.VersionStorage
fr.ifremer.isisfish.datastore.CodeSourceStorage
fr.ifremer.isisfish.datastore.JavaSourceStorage
public abstract class JavaSourceStorage
Classes abstraite permettant la gestion des fichiers de code source.
Exemple :
AnalysePlanStorage
ExportStorage,
RuleStorage,
ScriptStorage,
SensitivityStorage,
SimulatorStorage
| Field Summary | |
|---|---|
protected static String |
PARAM_PREFIX
|
| Fields inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage |
|---|
content, lastContentLength, lastContentUpdate, name |
| Fields inherited from class fr.ifremer.isisfish.datastore.VersionStorage |
|---|
changeListeners, file, root |
| Constructor Summary | |
|---|---|
protected |
JavaSourceStorage(File rootSrc,
File directory,
String name)
Build a new java source storage. |
| Method Summary | |
|---|---|
int |
compile(boolean force,
PrintWriter out)
Compile cette classe dans le répertoire par defaut de compilation ( IsisConfig.getCompileDirectory()) |
int |
doJavadoc(boolean force,
PrintWriter out)
Build class javadoc. |
Class<?> |
getCodeClass()
Retourne la classe compilée. |
String |
getFQN()
Return class fully qualified name. |
static String |
getName(Object instance)
Retourne le nom de la classe (sans le package) a partir d'un objet. |
Object |
getNewInstance()
Retourne une nouvelle instance de la class. |
static Doc |
getParameterDoc(Object object,
String paramName)
Get doc of parameter. |
| Methods inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage |
|---|
diff, exists, getContent, getFiles, getName, prepare, reload, setContent |
| Methods inherited from class fr.ifremer.isisfish.datastore.VersionStorage |
|---|
add, addStorageChangeListener, checkout, commit, delete, fireDataChanged, getContextDatabaseCacheKey, getContextDatabaseDirectory, getFile, getFiles, getRemoteStorageNames, getRoot, getStorageNames, getVCS, isOnRemote, isUpToDate, isVersionnableFile, removeStorageChangeListener, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String PARAM_PREFIX
| Constructor Detail |
|---|
protected JavaSourceStorage(File rootSrc,
File directory,
String name)
rootSrc - sources root directorydirectory - class location directory (rootSrc subdirectory)name - class name| Method Detail |
|---|
public String getFQN()
public static String getName(Object instance)
instance - l'instance dont on veut le nom
public int compile(boolean force,
PrintWriter out)
IsisConfig.getCompileDirectory())
force - si vrai alors meme si le fichier destination est plus recent
la compilation aura lieuout - le flux sur lequel le resultat de la compilation doit
apparaitre. Peut-etre null, dans ce cas les sorties standards sont
utilisées.
public int doJavadoc(boolean force,
PrintWriter out)
IsisConfig.getJavadocDirectory()
force - force javadoc build even if destination file is neverout - output print stream. if nullReturns:
public Class<?> getCodeClass()
throws IsisFishException
IsisFishException
public Object getNewInstance()
throws IsisFishException
IsisFishException - if can't make new instance
public static Doc getParameterDoc(Object object,
String paramName)
object - object containing parameterparamName - parameter name
Doc annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||