org.eclipse.osgi.baseadaptor.loader
Class ClasspathEntry

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

public class ClasspathEntry
extends 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, ProtectionDomain domain)
          Constructs a ClasspathElement with the specified bundlefile and domain
 
Method Summary
 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
 
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,
                      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

getBaseData

public BaseData getBaseData()
Returns the base data which this entry is associated with. This can be either a host or fragment base data.


getDomain

public ProtectionDomain getDomain()
Returns the ProtectionDomain for this classpath entry

Returns:
the ProtectionDomain for this classpath entry

getUserObject

public Object getUserObject(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


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.