org.apache.directory.shared.ldap.schema.ldif.extractor.impl
Class ResourceMap

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap

public class ResourceMap
extends java.lang.Object

Lists LDIF resources available from the classpath.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
ResourceMap()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Boolean> getResources(java.util.regex.Pattern pattern)
          For all elements of java.class.path get a Map of resources Pattern pattern = Pattern.compile(".*").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMap

public ResourceMap()
Method Detail

getResources

public static java.util.Map<java.lang.String,java.lang.Boolean> getResources(java.util.regex.Pattern pattern)
For all elements of java.class.path get a Map of resources Pattern pattern = Pattern.compile(".*"). The keys represent resource names and the boolean parameter indicates whether or not the resource is in a Jar file.

Parameters:
pattern - the pattern to match
Returns:
the resources with markers - true if resource is in Jar


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.