KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > types > optional > MBeanType


1 package org.apache.tools.ant.types.optional;
2
3 /*
4  * ============================================================================
5  * The Apache Software License, Version 1.1
6  * ============================================================================
7  *
8  * Copyright (C) 2000-2002 The Apache Software Foundation. All
9  * rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without modifica-
12  * tion, are permitted provided that the following conditions are met:
13  *
14  * 1. Redistributions of source code must retain the above copyright notice,
15  * this list of conditions and the following disclaimer.
16  *
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  *
21  * 3. The end-user documentation included with the redistribution, if any, must
22  * include the following acknowledgment: "This product includes software
23  * developed by the Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself, if
25  * and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "Ant" and "Apache Software Foundation" must not be used to
28  * endorse or promote products derived from this software without prior
29  * written permission. For written permission, please contact
30  * apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache", nor may
33  * "Apache" appear in their name, without prior written permission of the
34  * Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
37  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
38  * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
39  * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
40  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
41  * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
42  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
43  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
45  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46  *
47  * This software consists of voluntary contributions made by many individuals
48  * on behalf of the Apache Software Foundation. For more information on the
49  * Apache Software Foundation, please see <http://www.apache.org/>.
50  *
51  */

52
53 /**
54  * This is an Ant type that represents a connection to a specific
55  * mbean with a server. This allows an MBean to be defined and then referred to
56  * by other JMX4Ant tasks using their mbeanref attribute.</br</br>
57  *
58  * @author <a HREF="mailto:b_dueck@hotmail.com">Brian Dueck</a>
59  * @version $Version$
60  *
61  */

62 public class MBeanType extends ContextType implements Cloneable JavaDoc {
63     
64     public static final String JavaDoc DATA_TYPE_NAME = "mbean";
65     
66     private String JavaDoc name = null;
67     
68     public MBeanType() {
69     }
70     
71     /** Getter for property name.
72      * @return Value of property name.
73      *
74      */

75     public java.lang.String JavaDoc getName() {
76         return name;
77     }
78     
79     /** Setter for property name.
80      *
81      * The object name of the JMX MBean. This name follows the
82      * standard JMX ObjectName form of:
83      * <blockquote><code>[domainName]:[property=value][,property=value]*</code></blockquote>
84      * Here are some examples for weblogic:
85      * <blockquote>
86      * <code>mydomain:Name=myconnectionPool,Type=JDBCConnectionPool</code></p>
87      * <code>:Name=myconnectionPool,Type=JDBCConnectionPool</code>
88      * </blockquote>
89      * Here are some examples for jboss:
90      * <blockquote>
91      * <code>jboss.system:service=MainDeployer</code></p>
92      * <code>jboss.system:type=Server</code>
93      * </blockquote>
94      *
95      * @param name New value of property name.
96      *
97      */

98     public void setName(java.lang.String JavaDoc name) {
99         this.name = name;
100     }
101     
102 }
103
Popular Tags