At 10:53 AM 6/21/2002 +0900, you wrote:
> >-ManagementInfo.java
> >final class MenagemtnInfo /*extends MetaInfo?*/ {
> > private static final Map c_map = new HashMap();
> > public static final ManagementInfo KERNEL = new
> >anagementInfo( Kernel.ROLE, "Kernel", new Class[]
{ KernelMBean.class } );
> > ...
> > ...
> >
> > private String m_role;
> > private String m_name;
> > private Class[] m_interfaces;
> > ...
> >
> > public static MenagementInfo getManagementInfoForRole( final String
role )
> > {
> > return (ManagementInfo)c_map.get( role );
> >}
> >
> >I think hard coding is better.
>
> I am not sure I understand 100%. The ManagementInfo class has a bunch of
> statics that define all the data needed to expose kernel parts as MBeans ?
Yep. I committed my implementation.
I don't explain my intention in English. :-|
Please see the sources. ;)
kool!
Cheers,
Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
- John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>