org.hibernate.osgi
Class CachedBundle

java.lang.Object
  extended by org.hibernate.osgi.CachedBundle

public class CachedBundle
extends Object

Integrates a Bundle, its key, and classes/resources that have been found through its ClassLoader. Primarily used to clear the OsgiClassLoader caches once the Bundle is deactivated.


Constructor Summary
CachedBundle(org.osgi.framework.Bundle bundle, String key)
           
 
Method Summary
 List<String> getClassNames()
           
 String getKey()
           
 URL getResource(String name)
           
 List<String> getResourceListNames()
           
 List<String> getResourceNames()
           
 Enumeration getResources(String name)
           
 Class loadClass(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedBundle

public CachedBundle(org.osgi.framework.Bundle bundle,
                    String key)
Method Detail

loadClass

public Class loadClass(String name)
                throws ClassNotFoundException
Throws:
ClassNotFoundException

getResource

public URL getResource(String name)

getResources

public Enumeration getResources(String name)
                         throws IOException
Throws:
IOException

getKey

public String getKey()

getClassNames

public List<String> getClassNames()

getResourceNames

public List<String> getResourceNames()

getResourceListNames

public List<String> getResourceListNames()


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.