KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > components > kernel > DefaultKernelMBean


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.components.kernel;
9
10 import org.apache.excalibur.baxter.ConstructiveMBean;
11
12 /**
13  * The manager for the kernel. Used to test ConstructiveMBean.
14  *
15  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
16  */

17 public class DefaultKernelMBean
18     extends ConstructiveMBean
19 {
20     public DefaultKernelMBean( final DefaultKernel kernel )
21     {
22         super( kernel, true );
23     }
24
25     /**
26      * Utility method called to define manageable
27      * objects attributes and operations.
28      */

29     protected void defineObject()
30     {
31         addAttribute( "applicationNames", false );
32
33         final String JavaDoc[] params = new String JavaDoc[]{String JavaDoc.class.getName()};
34         addOperation( "getApplication", params, INFO );
35     }
36 }
37
Popular Tags