Crossfire JXClient, Trunk
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
com.sun.jmx.examples.scandir.TestUtils Class Reference
Collaboration diagram for com.sun.jmx.examples.scandir.TestUtils:
Collaboration graph

Static Public Member Functions

static ObjectName getObjectName (Object proxy)
 
static< T > T makeNotificationEmitter (T proxy, Class< T > mbeanInterface)
 

Private Member Functions

 TestUtils ()
 

Static Private Attributes

static final Logger LOG
 

Detailed Description

A utility class defining static methods used by our tests.

Author
Sun Microsystems, 2006 - All rights reserved.

Definition at line 57 of file TestUtils.java.

Constructor & Destructor Documentation

◆ TestUtils()

com.sun.jmx.examples.scandir.TestUtils.TestUtils ( )
private

Creates a new instance of TestUtils

Definition at line 66 of file TestUtils.java.

Member Function Documentation

◆ getObjectName()

static ObjectName com.sun.jmx.examples.scandir.TestUtils.getObjectName ( Object  proxy)
static

Returns the ObjectName of the MBean that a proxy object is proxying.

Definition at line 73 of file TestUtils.java.

Referenced by com.sun.jmx.examples.scandir.ScanDirConfigTest.testAddNotificationListener().

Here is the caller graph for this function:

◆ makeNotificationEmitter()

static <T> T com.sun.jmx.examples.scandir.TestUtils.makeNotificationEmitter ( proxy,
Class< T >  mbeanInterface 
)
static

Transfroms a proxy implementing T in a proxy implementing T plus NotificationEmitter

Definition at line 89 of file TestUtils.java.

References name().

Referenced by com.sun.jmx.examples.scandir.ScanDirConfigTest.testAddNotificationListener().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ LOG

final Logger com.sun.jmx.examples.scandir.TestUtils.LOG
staticprivate
Initial value:
=
Logger.getLogger(TestUtils.class.getName())

A logger for this class.

Definition at line 62 of file TestUtils.java.


The documentation for this class was generated from the following file:
com.sun.jmx.examples.scandir.TestUtils.TestUtils
TestUtils()
Definition: TestUtils.java:66