Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.jboss.deployer.structure
Class PathMatcher

java.lang.Object
  extended by org.nuxeo.runtime.jboss.deployer.structure.PathMatcher

public class PathMatcher
extends Object

Helper to parse and load classpaths

Author:
Bogdan Stefanescu

Constructor Summary
PathMatcher()
           
 
Method Summary
 void addExactPath(String path)
           
 PathPattern addPattern(PathPattern pattern)
           
 void addPattern(String path)
           
 void addPatterns(String pathExpr)
          Parse and add patterns from a class path expression.
 void addPatterns(String[] paths)
           
 List<File> getAbsoluteMatches()
           
 List<String> getExactPaths()
           
 List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
          Returns null if nothing matches.
 List<File> getMatchesAsFiles(File root)
           
 List<String> getMatchesAsPaths(File root)
           
 Map<String,PathPattern> getPatterns()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatcher

public PathMatcher()
Method Detail

getExactPaths

public List<String> getExactPaths()

addExactPath

public void addExactPath(String path)

addPattern

public void addPattern(String path)

isEmpty

public boolean isEmpty()

addPattern

public PathPattern addPattern(PathPattern pattern)

addPatterns

public void addPatterns(String[] paths)

getPatterns

public Map<String,PathPattern> getPatterns()

addPatterns

public void addPatterns(String pathExpr)
Parse and add patterns from a class path expression. Example of expression: lib/*.jar:bundles/*:nuxeo-core-*.rar

Parameters:
pathExpr - a class path pattenr expression

getMatches

public List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
                                               throws IOException
Returns null if nothing matches.

Throws:
IOException

getMatchesAsFiles

public List<File> getMatchesAsFiles(File root)
                             throws IOException
Throws:
IOException

getMatchesAsPaths

public List<String> getMatchesAsPaths(File root)
                               throws IOException
Throws:
IOException

getAbsoluteMatches

public List<File> getAbsoluteMatches()
                              throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.