|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclasspathhelper.ContentDetail
Class representing generic content that is loaded via a ClassLoader as either a class or Resource. Subclasses will typically look at the contents of the file and provide more detailed attributes.
Field Summary | |
protected ContentDescription |
description
|
Constructor Summary | |
protected |
ContentDetail(CGClassLoader theClassLoader)
|
Method Summary | |
void |
addBlockedLocation(java.lang.String location,
boolean sameBytes)
Used during construction to build up the blocked locations of this detail object. |
java.lang.String[] |
getAllLocations()
Returns an array of all the locations this content can be cound at (unordered). |
java.lang.String[] |
getBlockedLocations()
Returns an array of locations where this class was also located, (but these locations where not used because they where later in the classpath). |
java.lang.String[] |
getBlockedLocationsWithDifferentByteCode()
Returns an array of locations where this class was also located and where the bytes loaded are different. |
long |
getChecksum()
|
CGClassLoader |
getClassLoader()
|
ContentDescription |
getDescription()
The description of this content. |
java.lang.String |
getLocation()
Returns the location description where this class was loaded from. |
java.lang.String |
getPath()
|
void |
setChecksum(long checksum)
Sets the checksum for the bytes used to create this class detail. |
void |
setLocation(java.lang.String location)
Sets the location for this detail object, typically this is called during object creation. |
void |
setPath(java.lang.String path)
The path for this content. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ContentDescription description
Constructor Detail |
protected ContentDetail(CGClassLoader theClassLoader)
theClassLoader
- The ClassLoader that created this content.Method Detail |
public CGClassLoader getClassLoader()
public void addBlockedLocation(java.lang.String location, boolean sameBytes)
location
- sameBytes
- Does this location have the same byte code?public long getChecksum()
public void setChecksum(long checksum)
checksum
- The checksum value.public java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- The location (such as a path to a jar or
directory).public java.lang.String[] getBlockedLocations()
public java.lang.String[] getBlockedLocationsWithDifferentByteCode()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The resource path.public ContentDescription getDescription()
public java.lang.String[] getAllLocations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |