jrunx.instrument
Class InstrumentationService

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrunx.instrument.InstrumentationService
All Implemented Interfaces:
ConfigurableServicePartitionMBean, InstrumentationServiceMBean, Instrumentor, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class InstrumentationService
extends ConfigurableServicePartition
implements InstrumentationServiceMBean

See Also:
Serialized Form

Field Summary
protected static InstrumentationService instrumentationService
           
protected  java.util.List instrumentors
           
 
Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
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
InstrumentationService()
           
 
Method Summary
static InstrumentationService getInstrumentationService()
          Factory method for getting the instrumentor.
 byte[] instrument(java.lang.String name, byte[] bytes, java.lang.ClassLoader loader)
          Instrument the bytes of the class file.
 void start()
          Every service other than mere data collections should start
 void stop()
          Every service other than mere data collections should stop
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroy, destroyServices, init, initServices, loadAndInit, loadChildren, setChildElements, startServices, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean
setChildElements
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
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, updateStatus
 

Field Detail

instrumentors

protected java.util.List instrumentors

instrumentationService

protected static InstrumentationService instrumentationService
Constructor Detail

InstrumentationService

public InstrumentationService()
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Specified by:
start in interface Service
Overrides:
start in class ConfigurableServicePartition

stop

public void stop()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should stop
Specified by:
stop in interface Service
Overrides:
stop in class ConfigurableServicePartition

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

getInstrumentationService

public static InstrumentationService getInstrumentationService()
Factory method for getting the instrumentor. Only valid after the InstrumentationService has been started


Copyright � 2002 Macromedia Corporation. All Rights Reserved.