|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.mycontainer.Gar
public class Gar
A set of configuration and binary resources for deployment in an instance of MyContainer.
| Constructor Summary | |
|---|---|
Gar(File file)
Creates an instance from an existing Gar file. |
|
Gar(String id)
Creates an instance with a given identifier. |
|
| Method Summary | |
|---|---|
Gar |
addConfiguration(String resourcePath)
Adds a configuration resource to the Gar. |
Gar |
addConfigurations(String resourcePath)
Adds all the configuration files in a given directory to the Gar. |
Gar |
addInterface(String resourcePath)
Adds an interface resource to the Gar. |
Gar |
addInterfaces(String resourcePath)
Adds all the interfaces in a given directory to the Gar. |
Gar |
addLibraries(String resourcePath)
Adds all the library resources in a given directory to the Gar. |
Gar |
addLibrary(String resourcePath)
Adds a library resource to the Gar. |
List<File> |
configuration()
|
File |
file()
|
String |
id()
|
List<File> |
interfaces()
Returns the interface resources in this Gar. |
long |
lastModified()
Return the most recent modification to the resources in the Gar. |
List<File> |
libs()
Returns the library resources in this Gar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Gar(File file)
public Gar(String id)
id - | Method Detail |
|---|
public long lastModified()
public Gar addLibrary(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the resource.
IllegalArgumentException - if the resource does not exist or is not readable.
public Gar addLibraries(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the directory
IllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;
public Gar addInterface(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the resource.
IllegalArgumentException - if the resource does not exist or is not readable.
public Gar addInterfaces(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the directory
IllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;
public Gar addConfiguration(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the resource.
IllegalArgumentException - if the resource does not exist or is not readable.
public Gar addConfigurations(String resourcePath)
throws IllegalArgumentException
resourcePath - the path to the directory
IllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;public String id()
public List<File> libs()
public List<File> interfaces()
public List<File> configuration()
public File file()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||