mx4j/src/test/test/javax/management/support NullMBeanInfoDMB.java,1.1,1.2

Simone Bordet <[email protected]>
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management/support
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30262/src/test/test/javax/management/support

Modified Files:
	NullMBeanInfoDMB.java 
Log Message:
Added copyright notice and author information

Index: NullMBeanInfoDMB.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/support/NullMBeanInfoDMB.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NullMBeanInfoDMB.java	6 Nov 2003 20:36:44 -0000	1.1
--- NullMBeanInfoDMB.java	10 Aug 2004 09:15:19 -0000	1.2
***************
*** 1,6 ****
  /*
!  * Created on Nov 6, 2003
   *
   */
  package test.javax.management.support;
  
--- 1,10 ----
  /*
!  * Copyright (C) MX4J.
!  * All rights reserved.
   *
+  * This software is distributed under the terms of the MX4J License version 1.0.
+  * See the terms of the MX4J License in the documentation provided with this software.
   */
+ 
  package test.javax.management.support;
  
***************
*** 22,90 ****
  
  /**
!  * @author wharold
   */
  public class NullMBeanInfoDMB implements DynamicMBean, MBeanRegistration
  {
! 	private boolean registered;
  
! 	public MBeanInfo getMBeanInfo()
! 	{
! 		return (registered)
! 			? null
! 			: new MBeanInfo(
! 				"test.javax.management.support.NullMBeanInfoDMB",
! 				"A DynamicMBean that returns null in response to getMBeanInfo() invocations",
! 				new MBeanAttributeInfo[0],
! 				new MBeanConstructorInfo[0],
! 				new MBeanOperationInfo[0],
! 				new MBeanNotificationInfo[0]);
! 	}
  
! 	public Object getAttribute(String attribute)
! 		throws AttributeNotFoundException, MBeanException, ReflectionException
! 	{
! 		return null;
! 	}
  
! 	public void setAttribute(Attribute attribute)
! 		throws
! 			AttributeNotFoundException,
! 			InvalidAttributeValueException,
! 			MBeanException,
! 			ReflectionException
! 	{}
  
! 	public AttributeList getAttributes(String[] attributes)
! 	{
! 		return null;
! 	}
  
! 	public AttributeList setAttributes(AttributeList attributes)
! 	{
! 		return null;
! 	}
  
! 	public Object invoke(String method, Object[] arguments, String[] params)
! 		throws MBeanException, ReflectionException
! 	{
! 		return null;
! 	}
  
! 	public void postDeregister()
! 	{}
  
! 	public void postRegister(Boolean registrationDone)
! 	{
! 		registered = registrationDone.booleanValue();
! 	}
  
! 	public void preDeregister() throws Exception
! 	{}
  
! 	public ObjectName preRegister(MBeanServer server, ObjectName name)
! 		throws Exception
! 	{
! 		return name;
! 	}
  
  }
--- 26,97 ----
  
  /**
!  * @author <a href="mailto:[email protected]">Ward Harold</a>
!  * @version $Revision$
   */
  public class NullMBeanInfoDMB implements DynamicMBean, MBeanRegistration
  {
!    private boolean registered;
  
!    public MBeanInfo getMBeanInfo()
!    {
!       return (registered)
!              ? null
!              : new MBeanInfo("test.javax.management.support.NullMBeanInfoDMB",
!                              "A DynamicMBean that returns null in response to getMBeanInfo() invocations",
!                              new MBeanAttributeInfo[0],
!                              new MBeanConstructorInfo[0],
!                              new MBeanOperationInfo[0],
!                              new MBeanNotificationInfo[0]);
!    }
  
!    public Object getAttribute(String attribute)
!            throws AttributeNotFoundException, MBeanException, ReflectionException
!    {
!       return null;
!    }
  
!    public void setAttribute(Attribute attribute)
!            throws
!            AttributeNotFoundException,
!            InvalidAttributeValueException,
!            MBeanException,
!            ReflectionException
!    {
!    }
  
!    public AttributeList getAttributes(String[] attributes)
!    {
!       return null;
!    }
  
!    public AttributeList setAttributes(AttributeList attributes)
!    {
!       return null;
!    }
  
!    public Object invoke(String method, Object[] arguments, String[] params)
!            throws MBeanException, ReflectionException
!    {
!       return null;
!    }
  
!    public void postDeregister()
!    {
!    }
  
!    public void postRegister(Boolean registrationDone)
!    {
!       registered = registrationDone.booleanValue();
!    }
  
!    public void preDeregister() throws Exception
!    {
!    }
  
!    public ObjectName preRegister(MBeanServer server, ObjectName name)
!            throws Exception
!    {
!       return name;
!    }
  
  }



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.