org.jdiagnose
Class DelegatingDiagnosticUnit

java.lang.Object
  extended byorg.jdiagnose.DelegatingDiagnosticUnit
All Implemented Interfaces:
Diagnostic, DiagnosticContainer

public class DelegatingDiagnosticUnit
extends java.lang.Object
implements DiagnosticContainer, Diagnostic

Used by DiagnosticUnit

See Also:
User: jamie Date: May 29, 2004 Time: 11:14:24 PM

Constructor Summary
DelegatingDiagnosticUnit(DiagnosticUnitLifeCycle delegate)
           
 
Method Summary
 void diagnose()
          Run this diagnostic.
 java.util.List getDiagnosticContainers()
           
 java.util.List getDiagnostics()
          Returns any children of this diagnostic.
 java.lang.String getName()
          Returns the name of the diagnostic.
protected  java.util.List getReflectedDiagnostics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingDiagnosticUnit

public DelegatingDiagnosticUnit(DiagnosticUnitLifeCycle delegate)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: DiagnosticContainer
Returns the name of the diagnostic. Should be a Fully Qualified Name, usually defaults to the classname (and method name in the case of the DiagnosticUnit)

Specified by:
getName in interface DiagnosticContainer
Returns:
the name of the diagnostic

getReflectedDiagnostics

protected java.util.List getReflectedDiagnostics()

getDiagnostics

public java.util.List getDiagnostics()
Description copied from interface: DiagnosticContainer
Returns any children of this diagnostic.

Specified by:
getDiagnostics in interface DiagnosticContainer
Returns:
any children of this diagnostic, should be instance of org.jdiagnose.Diagnostic

getDiagnosticContainers

public java.util.List getDiagnosticContainers()
Specified by:
getDiagnosticContainers in interface DiagnosticContainer

diagnose

public void diagnose()
              throws DiagnosticException
Description copied from interface: Diagnostic
Run this diagnostic.

Specified by:
diagnose in interface Diagnostic
Throws:
DiagnosticException - if the diagnostic failed


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.