org.eclipse.osgi.baseadaptor.loader
Class ClasspathEntry

java.lang.Object
  extended by org.eclipse.osgi.baseadaptor.loader.ClasspathEntry

public class ClasspathEntry
extends java.lang.Object

A ClasspathEntry contains a single 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.

Since:
3.2

Constructor Summary
ClasspathEntry(BundleFile bundlefile, java.security.ProtectionDomain domain)
          Constructs a ClasspathElement with the specified bundlefile and domain
 
Method Summary
 void addUserObject(KeyedElement userObject)
          Adds a user object
 BundleFile getBundleFile()
          Returns the source BundleFile for this classpath entry
 java.security.ProtectionDomain getDomain()
          Returns the ProtectionDomain for this classpath entry
 java.lang.Object getUserObject(java.lang.Object key)
          Returns a user object which is keyed by the specified key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathEntry

public ClasspathEntry(BundleFile bundlefile,
                      java.security.ProtectionDomain domain)
Constructs a ClasspathElement with the specified bundlefile and domain

Parameters:
bundlefile - A BundleFile object which acts as a source
domain - the ProtectDomain for all code loaded from this classpath element
Method Detail

getBundleFile

public BundleFile getBundleFile()
Returns the source BundleFile for this classpath entry

Returns:
the source BundleFile for this classpath entry

getDomain

public java.security.ProtectionDomain getDomain()
Returns the ProtectionDomain for this classpath entry

Returns:
the ProtectionDomain for this classpath entry

getUserObject

public java.lang.Object getUserObject(java.lang.Object key)
Returns a user object which is keyed by the specified key

Parameters:
key - the key of the user object to get
Returns:
a user object which is keyed by the specified key

addUserObject

public void addUserObject(KeyedElement userObject)
Adds a user object

Parameters:
userObject - the user object to add