public final class NetigsoArchive extends Object
NetigsoArchive.forBundle(long, org.netbeans.core.netigso.spi.BundleContent)
method to obtain own copy of the archive. Your bundle needs to have
an associated BundleContent
implementation. Then you can read
cached content of your bundles via NetigsoArchive.fromArchive(java.lang.String)
.Modifier and Type | Method and Description |
---|---|
NetigsoArchive |
forBundle(long bundleId,
BundleContent content)
Creates a clone of the archive for given bundle.
|
byte[] |
fromArchive(String resource)
Checks whether the given resource is in the archive cache.
|
boolean |
isActive()
Checks whether the archive should be used or not.
|
byte[] |
patchByteCode(ClassLoader l,
String className,
ProtectionDomain pd,
byte[] arr)
Gives OSGi containers that support bytecode patching a chance to
call into NetBeans internal patching system based on
Instrumentation . |
public NetigsoArchive forBundle(long bundleId, BundleContent content)
bundleId
- identification of the bundlecontent
- implementation that can read from the bundlepublic byte[] fromArchive(String resource) throws IOException
BundleContent
associated 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 resourceIOException
- signals I/O errorpublic boolean isActive()
false
.NetigsoArchive.fromArchive(java.lang.String)
methodpublic final byte[] patchByteCode(ClassLoader l, String className, ProtectionDomain pd, byte[] arr)
Instrumentation
.l
- class loader loading the classclassName
- the name of the class to definepd
- its protection domainarr
- bytecode (must not be modified)