|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.fileinstall.internal.Util
public class Util
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
jarDir(java.io.File directory,
java.io.File zipName)
Jar up a directory |
static void |
jarDir(java.io.File directory,
java.io.OutputStream os)
|
static long |
loadChecksum(org.osgi.framework.Bundle b,
org.osgi.framework.BundleContext bc)
Returns the stored checksum of the bundle. |
static void |
log(org.osgi.framework.BundleContext context,
long debug,
java.lang.String message,
java.lang.Throwable e)
Log a message and optional throwable. |
static void |
performSubstitution(java.util.Dictionary properties)
Perform substitution on a property set |
static void |
storeChecksum(org.osgi.framework.Bundle b,
long checksum,
org.osgi.framework.BundleContext bc)
Stores the checksum into a bundle data file. |
static java.lang.String |
substVars(java.lang.String val,
java.lang.String currentKey,
java.util.Map cycleMap,
java.util.Dictionary configProps)
This method performs property variable substitution on the specified value. |
static void |
zipDir(java.io.File directory,
java.util.zip.ZipOutputStream zos,
java.lang.String path,
java.util.Set exclusions)
Zip up a directory path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void performSubstitution(java.util.Dictionary properties)
properties - the property set to perform substitution on
public static java.lang.String substVars(java.lang.String val,
java.lang.String currentKey,
java.util.Map cycleMap,
java.util.Dictionary configProps)
throws java.lang.IllegalArgumentException
This method performs property variable substitution on the specified value. If the specified value contains the syntax ${<prop-name>}, where <prop-name> refers to either a configuration property or a system property, then the corresponding property value is substituted for the variable placeholder. Multiple variable placeholders may exist in the specified value as well as nested variable placeholders, which are substituted from inner most to outer most. Configuration properties override system properties.
val - The string on which to perform property substitution.currentKey - The key of the property being evaluated used to
detect cycles.cycleMap - Map of variable references used to detect nested cycles.configProps - Set of configuration properties.
java.lang.IllegalArgumentException - If there was a syntax error in the
property placeholder syntax or a recursive variable reference.
public static void log(org.osgi.framework.BundleContext context,
long debug,
java.lang.String message,
java.lang.Throwable e)
message - The message to loge - The throwable to log
public static void jarDir(java.io.File directory,
java.io.File zipName)
throws java.io.IOException
directory - zipName -
java.io.IOException
public static void jarDir(java.io.File directory,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOException
public static void zipDir(java.io.File directory,
java.util.zip.ZipOutputStream zos,
java.lang.String path,
java.util.Set exclusions)
throws java.io.IOException
directory - zos - path - exclusions -
java.io.IOException
public static void storeChecksum(org.osgi.framework.Bundle b,
long checksum,
org.osgi.framework.BundleContext bc)
b - The bundle whose checksum must be storedchecksum - the lastModified date to be stored in bcbc - the FileInstall's bundle context where to store the checksum.
public static long loadChecksum(org.osgi.framework.Bundle b,
org.osgi.framework.BundleContext bc)
b - the bundle whose checksum must be returnedbc - the FileInstall's bundle context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||