public class ClasspathEntry extends Object
BundleFile
which is used as
a source to load classes and resources from, and a single
ProtectionDomain
which is used as the domain to define classes
loaded from this ClasspathEntry.Constructor and Description |
---|
ClasspathEntry(BundleFile bundlefile,
ProtectionDomain domain)
Constructs a ClasspathElement with the specified bundlefile and domain
|
Modifier and Type | Method and Description |
---|---|
void |
addUserObject(KeyedElement userObject)
Adds a user object
|
BaseData |
getBaseData()
Returns the base data which this entry is associated with.
|
BundleFile |
getBundleFile()
Returns the source BundleFile for this classpath entry
|
ProtectionDomain |
getDomain()
Returns the ProtectionDomain for this classpath entry
|
Object |
getUserObject(Object key)
Returns a user object which is keyed by the specified key
|
public ClasspathEntry(BundleFile bundlefile, ProtectionDomain domain)
bundlefile
- A BundleFile object which acts as a sourcedomain
- the ProtectDomain for all code loaded from this classpath elementpublic BundleFile getBundleFile()
public BaseData getBaseData()
public ProtectionDomain getDomain()
public Object getUserObject(Object key)
key
- the key of the user object to getpublic void addUserObject(KeyedElement userObject)
userObject
- the user object to addCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.