Search in sources :

Example 11 with Content

use of org.apache.felix.framework.cache.Content in project felix by apache.

the class BundleWiringImpl method dispose.

public synchronized void dispose() {
    if (m_fragmentContents != null) {
        for (Content content : m_fragmentContents) {
            content.close();
        }
    }
    m_classLoader = null;
    m_isDisposed = true;
    m_accessorLookupCache = null;
}
Also used : JarContent(org.apache.felix.framework.cache.JarContent) Content(org.apache.felix.framework.cache.Content)

Aggregations

Content (org.apache.felix.framework.cache.Content)11 ArrayList (java.util.ArrayList)8 HashSet (java.util.HashSet)4 List (java.util.List)4 BundleClassLoader (org.apache.felix.framework.BundleWiringImpl.BundleClassLoader)4 JarContent (org.apache.felix.framework.cache.JarContent)4 Test (org.junit.Test)4 WovenClass (org.osgi.framework.hooks.weaving.WovenClass)4 MultiReleaseContent (org.apache.felix.framework.util.MultiReleaseContent)3 ServiceReference (org.osgi.framework.ServiceReference)3 WeavingHook (org.osgi.framework.hooks.weaving.WeavingHook)3 WovenClassListener (org.osgi.framework.hooks.weaving.WovenClassListener)3 File (java.io.File)2 DirectoryContent (org.apache.felix.framework.cache.DirectoryContent)2 ImmutableList (org.apache.felix.framework.util.ImmutableList)2 BundleException (org.osgi.framework.BundleException)2 BundleWire (org.osgi.framework.wiring.BundleWire)2 IOException (java.io.IOException)1 URL (java.net.URL)1 AllPermission (java.security.AllPermission)1