org.apache.avalon.phoenix.components.manager
Class Target

java.lang.Object
  |
  +--org.apache.avalon.phoenix.components.manager.Target

public class Target
extends java.lang.Object

It reprensents a managed object in the managegement space. It is a container for zero or more management topics and zero or more management lists.

Version:
$$
Author:
robertsh

Constructor Summary
Target(java.lang.String name, java.lang.Object managedResource)
          Creates new Target
 
Method Summary
 void addTopic(ModelMBeanInfo topic)
          Topics are a set of attributes and operations relevant to a particular aspect of an object.
 java.lang.Object getManagedResource()
          Returns the object managed by the target
 java.lang.String getName()
          Returns the name of the Target
 ModelMBeanInfo getTopic(java.lang.String name)
          Gets a topic for this Target
 java.util.Set getTopicNames()
          Returns the Set of topics for this Target
 void removeTopic(java.lang.String name)
          Removes a topic for this target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target(java.lang.String name,
              java.lang.Object managedResource)
Creates new Target

Parameters:
name - the name for the target
managedResource - the object that this managedResource represents in the management hierarchy
Method Detail

getName

public java.lang.String getName()
Returns the name of the Target

Returns:
the name

getManagedResource

public java.lang.Object getManagedResource()
Returns the object managed by the target

Returns:
the managed object

addTopic

public void addTopic(ModelMBeanInfo topic)
Topics are a set of attributes and operations relevant to a particular aspect of an object. A Target must typically have at least one topic in order to be manageable.

Parameters:
topic -

removeTopic

public void removeTopic(java.lang.String name)
Removes a topic for this target

Parameters:
name - the name of the topic to remove

getTopic

public ModelMBeanInfo getTopic(java.lang.String name)
Gets a topic for this Target

Parameters:
name - the name of the topic
Returns:
the topic of that name

getTopicNames

public java.util.Set getTopicNames()
Returns the Set of topics for this Target

Returns:
the Set of topic names


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.