Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


ClassFileTransformerjava.lang.instrument

Java 5.0

A
ClassFileTransformer
registered through an
Instrumentation object is offered a chance to
transform every class that is subsequently loaded or redefined. The
final argument to transform( ) is a byte array
that contains the raw bytes of the class file (or bytes returned by a
previously invoked ClassFileTransformer). If the
TRansform( )
method wishes to transform the class, it should return the
transformed bytes in a newly allocated array. The array passed to
transform( ) should not be modified. If the
transform( ) method does not wish to transform a
given class, it should return null.

public interface

ClassFileTransformer {
// Public Instance Methods
byte[ ]

transform (ClassLoader

loader , String

className , Class<?>

classBeingRedefined ,
java.security.ProtectionDomain

protectionDomain , byte[ ]

classfileBuffer )
throws IllegalClassFormatException;
}


Passed To


Instrumentation.{addTransformer( ),
removeTransformer( )}


    / 1191