public class ClassPathImpl extends java.lang.Object implements IClassPath
Constructor and Description |
---|
ClassPathImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCodeBase(ICodeBase codeBase)
Add a codebase.
|
java.util.Iterator<? extends ICodeBase> |
appCodeBaseIterator()
Return an iterator over the application codebases.
|
java.util.Iterator<? extends ICodeBase> |
auxCodeBaseIterator()
Return an iterator over the auxiliary codebases.
|
void |
close()
Close all of the code bases that are part of this class path.
|
java.util.Map<java.lang.String,ICodeBaseEntry> |
getApplicationCodebaseEntries()
Returns all of the application code base entries that are part of this class path.
|
ICodeBaseEntry |
lookupResource(java.lang.String resourceName)
Lookup a resource by name.
|
void |
mapResourceNameToCodeBaseEntry(java.lang.String resourceName,
ICodeBaseEntry codeBaseEntry)
Add a resource name to codebase entry mapping.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public void addCodeBase(ICodeBase codeBase)
IClassPath
addCodeBase
in interface IClassPath
codeBase
- the codebase to addpublic java.util.Iterator<? extends ICodeBase> appCodeBaseIterator()
IClassPath
appCodeBaseIterator
in interface IClassPath
public java.util.Iterator<? extends ICodeBase> auxCodeBaseIterator()
IClassPath
auxCodeBaseIterator
in interface IClassPath
public void close()
IClassPath
close
in interface IClassPath
public java.util.Map<java.lang.String,ICodeBaseEntry> getApplicationCodebaseEntries()
IClassPath
getApplicationCodebaseEntries
in interface IClassPath
public ICodeBaseEntry lookupResource(java.lang.String resourceName) throws ResourceNotFoundException
IClassPath
lookupResource
in interface IClassPath
resourceName
- name of the resource to look upResourceNotFoundException
- if the resource is not foundpublic void mapResourceNameToCodeBaseEntry(java.lang.String resourceName, ICodeBaseEntry codeBaseEntry)
IClassPath
mapResourceNameToCodeBaseEntry
in interface IClassPath
resourceName
- the resource name to mapcodeBaseEntry
- the codebase entry to use for this resourceFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.