WeavingHook for possible modification. It allows access to the most
recently transformed class file bytes and to any additional packages that
should be added to the bundle as dynamic imports.
Upon entering one of the terminal states, this object becomes effectively immutable.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFINE_FAILED
The woven class failed to define. |
| public static final int | DEFINED
The woven class has been defined. |
| public static final int | TRANSFORMED
The woven class has been transformed. |
| public static final int | TRANSFORMING
The woven class is being transformed. |
| public static final int | TRANSFORMING_FAILED
The woven class failed to transform. |
| Modifier and Type | Method and Description |
|---|---|
| public BundleWiring | Returns: The bundle wiring whose class loader will define the woven class.Returns the bundle wiring whose class loader will define the woven class. |
| public byte[] | |
| public String | Returns: The fully qualified name of the class being woven.Returns the fully qualified name of the class being woven. |
| public Class | Returns: The class associated with this woven class, ornull if
weaving is not complete, the class definition failed or this
woven class was not used to define the class.Returns the class defined by this woven class. |
| public List | Returns: A list containing zero or more dynamic import package descriptions to add to the bundle wiring for this woven class. This list must throwIllegalArgumentException if a
malformed dynamic import package description is added.Returns the list of dynamic import package descriptions to add to the
|
| public ProtectionDomain | Returns: The protection domain to which the woven class will be assigned when it is defined, ornull if no protection domain will
be assigned.Returns the protection domain to which the woven class will be assigned when it is defined. |
| public int | |
| public boolean | |
| public void |
| DEFINE_FAILED | back to summary |
|---|---|
| public static final int DEFINE_FAILED The woven class failed to define. The woven class is in this state when a failure occurs while defining the class. The woven class cannot be further transformed or defined. This is a terminal state. Upon entering this state, this object is effectively immutable.
| |
| DEFINED | back to summary |
|---|---|
| public static final int DEFINED The woven class has been defined.
The woven class is in this state after the class is defined. The woven
class cannot be further transformed. This is a terminal state. Upon
entering this state, this object is effectively immutable, the
| |
| TRANSFORMED | back to summary |
|---|---|
| public static final int TRANSFORMED The woven class has been transformed.
The woven class is in this state after
| |
| TRANSFORMING | back to summary |
|---|---|
| public static final int TRANSFORMING The woven class is being transformed.
The woven class is in this state while
| |
| TRANSFORMING_FAILED | back to summary |
|---|---|
| public static final int TRANSFORMING_FAILED The woven class failed to transform.
The woven class is in this state if a
| |
| getBundleWiring | back to summary |
|---|---|
| public BundleWiring getBundleWiring() Returns the bundle wiring whose class loader will define the woven class.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Returns the class file bytes to be used to define the
While in the
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Returns the fully qualified name of the class being woven.
| |
| getDefinedClass | back to summary |
|---|---|
| public Class Returns the class defined by this woven class. During weaving, this
method will return
| |
| getDynamicImports | back to summary |
|---|---|
| public List Returns the list of dynamic import package descriptions to add to the
After leaving the
If the Java runtime environment supports permissions, any modification to
the returned list requires
| |
| getProtectionDomain | back to summary |
|---|---|
| public ProtectionDomain getProtectionDomain() Returns the protection domain to which the woven class will be assigned when it is defined.
| |
| getState | back to summary |
|---|---|
| public int getState() Returns the current state of this woven class. A woven class can be in only one state at any time.
| |
| isWeavingComplete | back to summary |
|---|---|
| public boolean isWeavingComplete() Returns whether weaving is complete in this woven class. Weaving is complete after the class is defined.
| |
| setBytes | back to summary |
|---|---|
| public void setBytes(byte[] newBytes) Set the class file bytes to be used to define the
While in the
| |