|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LagoonContext
Defines project-wide services for components.
The repository may be unavailable. Then all attempts to use it
will return null or false
| Method Summary | |
|---|---|
boolean |
canCheckFileHasBeenUpdated(java.lang.String url)
Tell whether the given source can be checked for dependency. |
void |
deleteClassInRepository(java.lang.String className)
Delete a Java class file from the repository. |
java.lang.String |
getFileURLRelativeTo(java.lang.String url,
java.lang.String base)
Get an URL representing the given file or directory. |
java.lang.Object |
getObjectFromRepository(java.lang.String key)
Get an object from the repository. |
java.lang.String |
getProperty(java.lang.String key)
Return the value of a project property. |
java.io.File |
getSourceRootDir()
Get an absolute File object representing the source root directory. |
java.io.File |
getTempDir()
Get the temp directory. |
java.lang.Class |
loadClassFromRepository(java.lang.String className)
Load a Java class file from the repository. |
boolean |
putObjectIntoRepository(java.lang.String key,
java.lang.Object obj)
Store an object into the repository. |
java.io.InputStream |
readFileFromRepository(java.lang.String key)
Read from a file in the repository. |
void |
reloadClasses()
Reload classes. |
java.io.OutputStream |
storeClassInRepository(java.lang.String className)
Store a Java class file in the repository. |
java.io.OutputStream |
storeFileInRepository(java.lang.String key)
Store a file in the repository. |
| Method Detail |
|---|
java.io.File getTempDir()
java.io.InputStream readFileFromRepository(java.lang.String key)
key - the key to locate the file
null
if the file wasn't found.
java.io.OutputStream storeFileInRepository(java.lang.String key)
throws java.io.IOException
key - the key to locate the file
null
if the repository is unavailable.
java.io.IOException
java.lang.Class loadClassFromRepository(java.lang.String className)
throws java.lang.ClassNotFoundException
className - the class name, no package
null
java.lang.ClassNotFoundException - if the class cannot be loaded
java.io.OutputStream storeClassInRepository(java.lang.String className)
throws java.io.IOException
className - the class name, no package
null
if the repository is unavailable.
java.io.IOException
void deleteClassInRepository(java.lang.String className)
throws java.io.IOException
className - the class name, no package
java.io.IOException
java.lang.Object getObjectFromRepository(java.lang.String key)
throws java.io.IOException
key - the key to locate the object
null if not found
java.io.IOExceptionvoid reloadClasses()
boolean putObjectIntoRepository(java.lang.String key,
java.lang.Object obj)
throws java.io.IOException
key - the key to locate the objectobj - the object to store, must be Serializable
true if successful,
false if the repository is unavailable.
java.io.IOExceptionboolean canCheckFileHasBeenUpdated(java.lang.String url)
url - URL to the filejava.io.File getSourceRootDir()
java.lang.String getFileURLRelativeTo(java.lang.String url,
java.lang.String base)
url - URL to the file, if relative it's searched for relative to
the base parameter.base - base URL, must be pseudo-absolute
java.lang.String getProperty(java.lang.String key)
key - the property name
null if the property is
not defined.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||