public final class NetigsoArchive extends Object
forBundle(long, org.netbeans.core.netigso.spi.BundleContent)method to obtain own copy of the archive. Your bundle needs to have an associated
BundleContentimplementation. Then you can read cached content of your bundles via
|Modifier and Type||Method and Description|
Creates a clone of the archive for given bundle.
Checks whether the given resource is in the archive cache.
Checks whether the archive should be used or not.
Gives OSGi containers that support bytecode patching a chance to call into NetBeans internal patching system based on
public NetigsoArchive forBundle(long bundleId, BundleContent content)
bundleId- identification of the bundle
content- implementation that can read from the bundle
public byte fromArchive(String resource) throws IOException
BundleContentassociated with this archive to deliver it. Later, during system execution this resource is stored into the global archive for use during subsequent restart.
resource- name of the resource
IOException- signals I/O error
public boolean isActive()
public final byte patchByteCode(ClassLoader l, String className, ProtectionDomain pd, byte arr)
l- class loader loading the class
className- the name of the class to define
pd- its protection domain
arr- bytecode (must not be modified)
Built on October 19 2017. | Portions Copyright 1997-2017 Oracle. All rights reserved.