Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.host
Interface MonitorFactory


public interface MonitorFactory

A MonitorFactory creates implementations of components' monitor interfaces that interface with a its monitoring scheme. For example, a implementation may create versions that emit appropriate logging events or which send notifications to a management API. MonitorFactory implementations must provide a no-arg constructor and implement the initialize(java.util.Map) method to perform configuration of instances created using that constructor. Additional constructors may be defined; typically their implementations delegate to initialize(java.util.Map).

Version:
$Rev: 432142 $ $Date: 2006-08-16 22:10:13 -0700 (Wed, 16 Aug 2006) $

Method Summary
<T> T
getMonitor(Class<T> monitorInterface)
          Return a monitor for a component's monitor interface.
 void initialize(Map<String,Object> configProperties)
          Initializes MonitorFactory instances with implementation-specific configuration properties.
 

Method Detail

initialize

void initialize(Map<String,Object> configProperties)
Initializes MonitorFactory instances with implementation-specific configuration properties.

Parameters:
configProperties - a map of named configuration properties. May be null.
Throws:
IllegalArgumentException - if the instance can't be configured using the supplied properties

getMonitor

<T> T getMonitor(Class<T> monitorInterface)
Return a monitor for a component's monitor interface.

Parameters:
monitorInterface - the component's monitoring interface
Returns:
an implementation of the monitoring interface; will not be null

Apache Tuscany SCA Kernel Sub-Project

-