jrunx.instrument
Class CustomInstrumentor

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.instrument.CustomInstrumentor
All Implemented Interfaces:
CustomInstrumentorMBean, Instrumentor, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean

public class CustomInstrumentor
extends ServiceAdapter
implements CustomInstrumentorMBean

Sample Instrumentor

See Also:
Serialized Form

Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
CustomInstrumentor()
           
 
Method Summary
 java.lang.String getSomeAttribute()
           
 byte[] instrument(java.lang.String name, byte[] bytes, java.lang.ClassLoader loader)
          Instrument the bytes of the class file.
 void setSomeAttribute(java.lang.String value)
           
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Constructor Detail

CustomInstrumentor

public CustomInstrumentor()
Method Detail

setSomeAttribute

public void setSomeAttribute(java.lang.String value)
Specified by:
setSomeAttribute in interface CustomInstrumentorMBean

getSomeAttribute

public java.lang.String getSomeAttribute()
Specified by:
getSomeAttribute in interface CustomInstrumentorMBean

instrument

public byte[] instrument(java.lang.String name,
                         byte[] bytes,
                         java.lang.ClassLoader loader)
                  throws java.io.IOException
Description copied from interface: Instrumentor
Instrument the bytes of the class file.
Specified by:
instrument in interface Instrumentor
Following copied from interface: jrunx.instrument.Instrumentor
Parameters:
name - The class name
bytes - The class bytes
loader - The ClassLoader that loaded the class
Returns:
The (potentially) modified class


Copyright � 2002 Macromedia Corporation. All Rights Reserved.