Nuxeo Enterprise Platform 5.4

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

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

public class PathMatcher
extends java.lang.Object

Helper to parse and load classpaths

Author:
Bogdan Stefanescu

Constructor Summary
PathMatcher()
           
 
Method Summary
 void addExactPath(java.lang.String path)
           
 PathPattern addPattern(PathPattern pattern)
           
 void addPattern(java.lang.String path)
           
 void addPatterns(java.lang.String pathExpr)
          Parse and add patterns from a class path expression.
 void addPatterns(java.lang.String[] paths)
           
 java.util.List<java.io.File> getAbsoluteMatches()
           
 java.util.List<java.lang.String> getExactPaths()
           
 java.util.List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
          Returns null if nothing matches.
 java.util.List<java.io.File> getMatchesAsFiles(java.io.File root)
           
 java.util.List<java.lang.String> getMatchesAsPaths(java.io.File root)
           
 java.util.Map<java.lang.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 java.util.List<java.lang.String> getExactPaths()

addExactPath

public void addExactPath(java.lang.String path)

addPattern

public void addPattern(java.lang.String path)

isEmpty

public boolean isEmpty()

addPattern

public PathPattern addPattern(PathPattern pattern)

addPatterns

public void addPatterns(java.lang.String[] paths)

getPatterns

public java.util.Map<java.lang.String,PathPattern> getPatterns()

addPatterns

public void addPatterns(java.lang.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 java.util.List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
                                                         throws java.io.IOException
Returns null if nothing matches.

Throws:
java.io.IOException

getMatchesAsFiles

public java.util.List<java.io.File> getMatchesAsFiles(java.io.File root)
                                               throws java.io.IOException
Throws:
java.io.IOException

getMatchesAsPaths

public java.util.List<java.lang.String> getMatchesAsPaths(java.io.File root)
                                                   throws java.io.IOException
Throws:
java.io.IOException

getAbsoluteMatches

public java.util.List<java.io.File> getAbsoluteMatches()
                                                throws java.io.IOException
Throws:
java.io.IOException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.