org.jvnet.hk2.component.classmodel
Class ClassPath

java.lang.Object
  extended by org.jvnet.hk2.component.classmodel.ClassPath

Deprecated.

@Deprecated
public abstract class ClassPath
extends Object

Helper for creating classpath approximating SE behavior.

Author:
Jerome Dochez, Jeff Trent

Field Summary
 LinkedHashSet<String> classPathEntries
          Deprecated.  
 LinkedHashSet<String> expandedClassPathEntries
          Deprecated.  
 
Constructor Summary
protected ClassPath(boolean allowTestClassPath)
          Deprecated.  
  ClassPath(Collection<File> classPath)
          Deprecated.  
  ClassPath(String classPath)
          Deprecated.  
 
Method Summary
static ClassPath create(Habitat h, boolean allowTestClassPath)
          Deprecated. Creates a ClassPathHelper instance.
static ClassPath create(Habitat h, Collection<File> classPath)
          Deprecated.  
static ClassPath create(Habitat h, String classPath)
          Deprecated.  
 boolean equals(Object another)
          Deprecated.  
 Set<String> getEntries()
          Deprecated. Find all jars referenced directly and indirectly via a classpath specification typically drawn from java.class.path or surefire.test.class.path System properties.
 Set<File> getFileEntries()
          Deprecated.  
 URL[] getRawURLs()
          Deprecated.  
 int hashCode()
          Deprecated.  
protected  void initialize(String classPath)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

classPathEntries

public final LinkedHashSet<String> classPathEntries
Deprecated. 

expandedClassPathEntries

public final LinkedHashSet<String> expandedClassPathEntries
Deprecated. 
Constructor Detail

ClassPath

protected ClassPath(boolean allowTestClassPath)
Deprecated. 

ClassPath

public ClassPath(String classPath)
Deprecated. 

ClassPath

public ClassPath(Collection<File> classPath)
Deprecated. 
Method Detail

create

public static ClassPath create(Habitat h,
                               boolean allowTestClassPath)
Deprecated. 
Creates a ClassPathHelper instance.

Parameters:
h - reserved for future use
allowTestClassPath - true if surefire.test.class.path is considered
Returns:
the ClassPathHelper

create

public static ClassPath create(Habitat h,
                               String classPath)
Deprecated. 

create

public static ClassPath create(Habitat h,
                               Collection<File> classPath)
Deprecated. 

initialize

protected void initialize(String classPath)
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

public boolean equals(Object another)
Deprecated. 
Overrides:
equals in class Object

getEntries

public Set<String> getEntries()
Deprecated. 
Find all jars referenced directly and indirectly via a classpath specification typically drawn from java.class.path or surefire.test.class.path System properties. This will attempt to expand all manifest classpath entries.

Returns:
the set of entries in the classpath

getFileEntries

public Set<File> getFileEntries()
Deprecated. 
See Also:
getEntries()

getRawURLs

public URL[] getRawURLs()
                 throws IOException
Deprecated. 
Returns:
the original classpath as specified (i.e., without transitive manifest dependencies)
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.