ch.elca.el4j.services.monitoring.jmx
Class ClassLoaderInvestigator

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.ClassLoaderInvestigator

public class ClassLoaderInvestigator
extends Object

Helper class which provides the functionality used through the ClassLoaderMBean.

Author:
Simon Stelling (SST)
File-location:
ClassLoaderInvestigator
Last check-in date:
2010-12-21 11:08:04 +0100 (Di, 21. Dez 2010) by swismer for revision 4253

Constructor Summary
ClassLoaderInvestigator(String className)
          Sole constructor.
 
Method Summary
 String[] getClassLoaderHierarchy()
           
 String getClassPathForInspectedClass()
           
 String getClassPathForInspectedClassUsingItsLoader()
           
 String[][] getProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderInvestigator

public ClassLoaderInvestigator(String className)
                        throws ClassNotFoundException
Sole constructor.

Parameters:
className - the name of the class to investigate.
Throws:
ClassNotFoundException
Method Detail

getClassLoaderHierarchy

public String[] getClassLoaderHierarchy()
Returns:
the classloader hierarchy of the investigated class. the first element is the lowest in the hierarchy, the topmost is the loader which has the bootstrap classloader as parent.

getClassPathForInspectedClass

public String getClassPathForInspectedClass()
Returns:
classpath obtained from Which4J for the inspected class

getClassPathForInspectedClassUsingItsLoader

public String getClassPathForInspectedClassUsingItsLoader()
Returns:
classpath obtained from Which4J for the inspected class using its ClassLoader

getProperties

public String[][] getProperties()
Returns:
the system properties as an array of 2-element arrays


Copyright © 2005-2011 ELCA. All Rights Reserved.