Package org.nuxeo.osgi.application
Class BundleWalker
- java.lang.Object
-
- org.nuxeo.osgi.application.FileWalker.Visitor
-
- org.nuxeo.osgi.application.BundleWalker
-
public class BundleWalker extends FileWalker.Visitor
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BundleWalker.Callback
-
Field Summary
Fields Modifier and Type Field Description static FileNamePattern[]
DEFAULT_PATTERNS
-
Constructor Summary
Constructors Constructor Description BundleWalker(BundleWalker.Callback cb)
BundleWalker(BundleWalker.Callback cb, String[] patterns)
BundleWalker(BundleWalker.Callback cb, FileNamePattern[] patterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptFile(String fileName, FileNamePattern[] patterns)
void
visit(File root)
void
visit(File... files)
void
visit(Collection<File> files)
int
visitDirectory(File file)
int
visitFile(File file)
-
-
-
Field Detail
-
DEFAULT_PATTERNS
public static final FileNamePattern[] DEFAULT_PATTERNS
-
-
Constructor Detail
-
BundleWalker
public BundleWalker(BundleWalker.Callback cb)
-
BundleWalker
public BundleWalker(BundleWalker.Callback cb, String[] patterns)
-
BundleWalker
public BundleWalker(BundleWalker.Callback cb, FileNamePattern[] patterns)
-
-
Method Detail
-
visit
public void visit(File root)
-
visit
public void visit(Collection<File> files)
-
visit
public void visit(File... files)
-
visitDirectory
public int visitDirectory(File file)
- Overrides:
visitDirectory
in classFileWalker.Visitor
-
visitFile
public int visitFile(File file)
- Overrides:
visitFile
in classFileWalker.Visitor
-
acceptFile
protected boolean acceptFile(String fileName, FileNamePattern[] patterns)
-
-