|
OPS4J Pax Swissbox :: Extender 1.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.swissbox.extender.BundleEntryScanner<T>
public abstract class BundleEntryScanner<T>
Scans bundles for entries such as directories of files. The bundle entry scanner is abstract in order to allow subclasses to create specific resources out of the found urls.
Constructor Summary | |
---|---|
BundleEntryScanner(String path,
String filePattern,
boolean recurse)
Creates a bundle entry scanner that scans all entries from a bundle starting form the root path specified without looking for bundle manifest headers. |
|
BundleEntryScanner(String pathManifestHeader,
String filePatternManifestHeader,
String recurseManifestHeader,
String path,
String filePattern,
boolean recurse)
Creates a bundle entry scanner that scans all entries from a bundle starting form the root path specified. |
Method Summary | |
---|---|
protected String |
getFilePattern(org.osgi.framework.Bundle bundle)
Returns the file pattern to be searched by first looking for an entry in the manifest of the bundle specified by file pattern manifest header. |
protected String |
getPath(org.osgi.framework.Bundle bundle)
Returns the path to be searched by first looking for an entry in the manifest of the bundle specified by path manifest header. |
protected boolean |
getRecurse(org.osgi.framework.Bundle bundle)
Returns the recurse by first looking for an entry in the manifest of the bundle specified by recurse manifest header. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ops4j.pax.swissbox.extender.BundleScanner |
---|
scan |
Constructor Detail |
---|
public BundleEntryScanner(String path, String filePattern, boolean recurse)
path
- The path name in which to look. A specified path of "/" indicates the root of
the bundle. Path is relative to the root of the bundle. If the path is null then
it is considered to be root of the bundle.filePattern
- The file name pattern for selecting entries in the specified path. The pattern
is only matched against the last element of the entry path and it supports
sub-string matching, as specified in the Filter specification, using the
wild-card character ("*"). If null is specified, this is
equivalent to "*" and matches all files.recurse
- If true, recurse into sub-directories. Otherwise only return entries from the
given directoryBundleEntryScanner(String, String, String, String, String, boolean)
public BundleEntryScanner(String pathManifestHeader, String filePatternManifestHeader, String recurseManifestHeader, String path, String filePattern, boolean recurse)
pathManifestHeader
- name of the manifest header for pathfilePatternManifestHeader
- name of the manifest header for file patternrecurseManifestHeader
- name of the manifest header for recursepath
- The path name in which to look. A specified path of "/" indicates the root of
the bundle. Path is relative to the root of the bundle. If the path is null then
it is considered to be root of the bundle.filePattern
- The file name pattern for selecting entries in the specified path. The pattern
is only matched against the last element of the entry path and it supports
sub-string matching, as specified in the Filter specification, using the
wild-card character ("*"). If null is specified, this is
equivalent to "*" and matches all files.recurse
- If true, recurse into sub-directories. Otherwise only return entries from the
given directoryBundle.findEntries(String, String, boolean)
Method Detail |
---|
protected String getPath(org.osgi.framework.Bundle bundle)
bundle
- bundle containing the manifest
protected String getFilePattern(org.osgi.framework.Bundle bundle)
bundle
- bundle containing the manifest
protected boolean getRecurse(org.osgi.framework.Bundle bundle)
bundle
- bundle containing the manifest
public String toString()
toString
in class Object
|
OPS4J Pax Swissbox :: Extender 1.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |