|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.installresource.Install
public abstract class Install
Abstract superclass for implementing file resource deployment behavior.
This is a useful package to deploy file based resources along with the classloader. Files or directories are detected via classloader and copied temporarily to the file system. Here you can access the resources locally - for example for loading a native library.
Platform dependent resources are supported via subdirectories.
When loading a non platform dependent resource, the file is searched in the class loader with getResourceAsStream(x) where x is
Install
instance
| Constructor Summary | |
|---|---|
Install(String path,
String name,
boolean platformDependent)
|
|
| Method Summary | |
|---|---|
boolean |
delete()
Delete the temporary installation. |
ClassLoader |
getClassLoader()
|
File |
getFile()
|
File[] |
getFiles()
|
String |
getName()
|
String |
getPath()
|
static String |
getPlatformDefaultId()
|
static String |
getPlatformFallbackId()
|
static String |
getPlatformId()
|
boolean |
isPlatformDependent()
|
File |
load()
Load the first occurrence of the designated target from the classloader and save it as a local temporary resource. |
File[] |
loadAll()
Load all occurrences of the designated target from the classloader. |
void |
setClassLoader(ClassLoader classLoader)
|
static void |
setPlatformFallbackId(String value)
|
static void |
setPlatformId(String value)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Install(String path,
String name,
boolean platformDependent)
| Method Detail |
|---|
public static String getPlatformDefaultId()
public static String getPlatformFallbackId()
public static String getPlatformId()
public static void setPlatformFallbackId(String value)
public static void setPlatformId(String value)
public boolean delete()
true if all artifacts are deleted.public ClassLoader getClassLoader()
public File getFile()
public File[] getFiles()
public String getName()
public String getPath()
public boolean isPlatformDependent()
public File load()
throws IOException
IOException
public File[] loadAll()
throws IOException
IOExceptionpublic void setClassLoader(ClassLoader classLoader)
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||