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 |
|
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 |
CustomInstrumentor
public CustomInstrumentor()
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 namebytes - The class bytesloader - The ClassLoader that loaded the class- Returns:
- The (potentially) modified class
Copyright � 2002 Macromedia Corporation. All Rights Reserved.