You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/07 02:20:39 UTC
svn commit: r1747118 - in
/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler:
BaseModelMBean.java BaseNotificationBroadcaster.java ManagedBean.java
Registry.java
Author: ggregory
Date: Tue Jun 7 02:20:39 2016
New Revision: 1747118
URL: http://svn.apache.org/viewvc?rev=1747118&view=rev
Log: (empty)
Modified:
commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseModelMBean.java
commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseNotificationBroadcaster.java
commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/ManagedBean.java
commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/Registry.java
Modified: commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseModelMBean.java
URL: http://svn.apache.org/viewvc/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseModelMBean.java?rev=1747118&r1=1747117&r2=1747118&view=diff
==============================================================================
--- commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseModelMBean.java (original)
+++ commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseModelMBean.java Tue Jun 7 02:20:39 2016
@@ -105,9 +105,9 @@ public class BaseModelMBean implements M
* Construct a <code>ModelMBean</code> with default
* <code>ModelMBeanInfo</code> information.
*
- * @exception MBeanException if the initializer of an object
+ * @throws MBeanException if the initializer of an object
* throws an exception
- * @exception RuntimeOperationsException if an IllegalArgumentException
+ * @throws RuntimeOperationsException if an IllegalArgumentException
* occurs
*/
public BaseModelMBean() throws MBeanException, RuntimeOperationsException {
@@ -124,9 +124,9 @@ public class BaseModelMBean implements M
*
* @param info ModelMBeanInfo for this MBean
*
- * @exception MBeanException if the initializer of an object
+ * @throws MBeanException if the initializer of an object
* throws an exception
- * @exception RuntimeOperationsException if an IllegalArgumentException
+ * @throws RuntimeOperationsException if an IllegalArgumentException
* occurs
*/
public BaseModelMBean(ModelMBeanInfo info)
@@ -229,11 +229,11 @@ public class BaseModelMBean implements M
*
* @param name Name of the requested attribute
*
- * @exception AttributeNotFoundException if this attribute is not
+ * @throws AttributeNotFoundException if this attribute is not
* supported by this MBean
- * @exception MBeanException if the initializer of an object
+ * @throws MBeanException if the initializer of an object
* throws an exception
- * @exception ReflectionException if a Java reflection exception
+ * @throws ReflectionException if a Java reflection exception
* occurs when invoking the getter
*/
public Object getAttribute(String name)
@@ -375,9 +375,9 @@ public class BaseModelMBean implements M
* @param signature Array containing the class names representing
* the signature of this operation
*
- * @exception MBeanException if the initializer of an object
+ * @throws MBeanException if the initializer of an object
* throws an exception
- * @exception ReflectioNException if a Java reflection exception
+ * @throws ReflectioNException if a Java reflection exception
* occurs when invoking a method
*/
public Object invoke(String name, Object params[], String signature[])
@@ -524,11 +524,11 @@ public class BaseModelMBean implements M
* @param attribute The identification of the attribute to be set
* and the new value
*
- * @exception AttributeNotFoundException if this attribute is not
+ * @throws AttributeNotFoundException if this attribute is not
* supported by this MBean
- * @exception MBeanException if the initializer of an object
+ * @throws MBeanException if the initializer of an object
* throws an exception
- * @exception ReflectionException if a Java reflection exception
+ * @throws ReflectionException if a Java reflection exception
* occurs when invoking the getter
*/
public void setAttribute(Attribute attribute)
@@ -700,11 +700,11 @@ public class BaseModelMBean implements M
* Get the instance handle of the object against which we execute
* all methods in this ModelMBean management interface.
*
- * @exception InstanceNotFoundException if the managed resource object
+ * @throws InstanceNotFoundException if the managed resource object
* cannot be found
- * @exception MBeanException if the initializer of the object throws
+ * @throws MBeanException if the initializer of the object throws
* an exception
- * @exception RuntimeOperationsException if the managed resource or the
+ * @throws RuntimeOperationsException if the managed resource or the
* resource type is <code>null</code> or invalid
*/
public Object getManagedResource()
@@ -735,13 +735,13 @@ public class BaseModelMBean implements M
* ("ObjectReference", "Handle", "IOR", "EJBHandle", or
* "RMIReference")
*
- * @exception InstanceNotFoundException if the managed resource object
+ * @throws InstanceNotFoundException if the managed resource object
* cannot be found
- * @exception InvalidTargetObjectTypeException if this ModelMBean is
+ * @throws InvalidTargetObjectTypeException if this ModelMBean is
* asked to handle a reference type it cannot deal with
- * @exception MBeanException if the initializer of the object throws
+ * @throws MBeanException if the initializer of the object throws
* an exception
- * @exception RuntimeOperationsException if the managed resource or the
+ * @throws RuntimeOperationsException if the managed resource or the
* resource type is <code>null</code> or invalid
*/
public void setManagedResource(Object resource, String type)
@@ -785,9 +785,9 @@ public class BaseModelMBean implements M
*
* @param info The ModelMBeanInfo object to be used by this ModelMBean
*
- * @exception MBeanException If an exception occurs recording this
+ * @throws MBeanException If an exception occurs recording this
* ModelMBeanInfo information
- * @exception RuntimeOperations if the specified parameter is
+ * @throws RuntimeOperations if the specified parameter is
* <code>null</code> or invalid
*/
public void setModelMBeanInfo(ModelMBeanInfo info)
@@ -820,7 +820,7 @@ public class BaseModelMBean implements M
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception IllegalArgumentException if the listener parameter is null
+ * @throws IllegalArgumentException if the listener parameter is null
*/
public void addAttributeChangeNotificationListener
(NotificationListener listener, String name, Object handback)
@@ -849,7 +849,7 @@ public class BaseModelMBean implements M
* @param name The attribute name for which no more events are required
*
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeAttributeChangeNotificationListener
@@ -877,7 +877,7 @@ public class BaseModelMBean implements M
* notifications
*
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeAttributeChangeNotificationListener
@@ -896,9 +896,9 @@ public class BaseModelMBean implements M
* @param notification The <code>AttributeChangeNotification</code>
* that will be passed
*
- * @exception MBeanException if an object initializer throws an
+ * @throws MBeanException if an object initializer throws an
* exception
- * @exception RuntimeOperationsException wraps IllegalArgumentException
+ * @throws RuntimeOperationsException wraps IllegalArgumentException
* when the specified notification is <code>null</code> or invalid
*/
public void sendAttributeChangeNotification
@@ -925,9 +925,9 @@ public class BaseModelMBean implements M
* @param oldValue The original value of the <code>Attribute</code>
* @param newValue The new value of the <code>Attribute</code>
*
- * @exception MBeanException if an object initializer throws an
+ * @throws MBeanException if an object initializer throws an
* exception
- * @exception RuntimeOperationsException wraps IllegalArgumentException
+ * @throws RuntimeOperationsException wraps IllegalArgumentException
* when the specified notification is <code>null</code> or invalid
*/
public void sendAttributeChangeNotification
@@ -962,9 +962,9 @@ public class BaseModelMBean implements M
*
* @param notification The <code>Notification</code> that will be passed
*
- * @exception MBeanException if an object initializer throws an
+ * @throws MBeanException if an object initializer throws an
* exception
- * @exception RuntimeOperationsException wraps IllegalArgumentException
+ * @throws RuntimeOperationsException wraps IllegalArgumentException
* when the specified notification is <code>null</code> or invalid
*/
public void sendNotification(Notification notification)
@@ -987,9 +987,9 @@ public class BaseModelMBean implements M
*
* @param message The message string to be passed
*
- * @exception MBeanException if an object initializer throws an
+ * @throws MBeanException if an object initializer throws an
* exception
- * @exception RuntimeOperationsException wraps IllegalArgumentException
+ * @throws RuntimeOperationsException wraps IllegalArgumentException
* when the specified notification is <code>null</code> or invalid
*/
public void sendNotification(String message)
@@ -1020,7 +1020,7 @@ public class BaseModelMBean implements M
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception IllegalArgumentException if the listener parameter is null
+ * @throws IllegalArgumentException if the listener parameter is null
*/
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
@@ -1105,7 +1105,7 @@ public class BaseModelMBean implements M
* @param listener The listener to be removed (any and all registrations
* for this listener will be eliminated)
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener)
@@ -1129,7 +1129,7 @@ public class BaseModelMBean implements M
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener,
@@ -1151,7 +1151,7 @@ public class BaseModelMBean implements M
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener,
@@ -1177,11 +1177,11 @@ public class BaseModelMBean implements M
* <p><strong>IMPLEMENTATION NOTE</strong> - This implementation does
* not support persistence.</p>
*
- * @exception InstanceNotFoundException if the managed resource object
+ * @throws InstanceNotFoundException if the managed resource object
* cannot be found
- * @exception MBeanException if the initializer of the object throws
+ * @throws MBeanException if the initializer of the object throws
* an exception
- * @exception RuntimeOperationsException if an exception is reported
+ * @throws RuntimeOperationsException if an exception is reported
* by the persistence mechanism
*/
public void load() throws InstanceNotFoundException,
@@ -1203,11 +1203,11 @@ public class BaseModelMBean implements M
* <p><strong>IMPLEMENTATION NOTE</strong> - This implementation does
* not support persistence.</p>
*
- * @exception InstanceNotFoundException if the managed resource object
+ * @throws InstanceNotFoundException if the managed resource object
* cannot be found
- * @exception MBeanException if the initializer of the object throws
+ * @throws MBeanException if the initializer of the object throws
* an exception, or persistence is not supported
- * @exception RuntimeOperationsException if an exception is reported
+ * @throws RuntimeOperationsException if an exception is reported
* by the persistence mechanism
*/
public void store() throws InstanceNotFoundException,
Modified: commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseNotificationBroadcaster.java
URL: http://svn.apache.org/viewvc/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseNotificationBroadcaster.java?rev=1747118&r1=1747117&r2=1747118&view=diff
==============================================================================
--- commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseNotificationBroadcaster.java (original)
+++ commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/BaseNotificationBroadcaster.java Tue Jun 7 02:20:39 2016
@@ -68,7 +68,7 @@ public class BaseNotificationBroadcaster
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception IllegalArgumentException if the listener parameter is null
+ * @throws IllegalArgumentException if the listener parameter is null
*/
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
@@ -130,7 +130,7 @@ public class BaseNotificationBroadcaster
* @param listener The listener to be removed (any and all registrations
* for this listener will be eliminated)
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener)
@@ -157,7 +157,7 @@ public class BaseNotificationBroadcaster
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener,
@@ -179,7 +179,7 @@ public class BaseNotificationBroadcaster
* @param handback Handback object to be sent along with event
* notifications
*
- * @exception ListenerNotFoundException if this listener is not
+ * @throws ListenerNotFoundException if this listener is not
* registered in the MBean
*/
public void removeNotificationListener(NotificationListener listener,
Modified: commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/ManagedBean.java
URL: http://svn.apache.org/viewvc/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/ManagedBean.java?rev=1747118&r1=1747117&r2=1747118&view=diff
==============================================================================
--- commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/ManagedBean.java (original)
+++ commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/ManagedBean.java Tue Jun 7 02:20:39 2016
@@ -307,13 +307,13 @@ public class ManagedBean implements java
* <strong>NOT</strong> have been registered with our
* <code>MBeanServer</code>.
*
- * @exception InstanceNotFoundException if the managed resource
+ * @throws InstanceNotFoundException if the managed resource
* object cannot be found
- * @exception InvalidTargetObjectTypeException if our MBean cannot
+ * @throws InvalidTargetObjectTypeException if our MBean cannot
* handle object references (should never happen)
- * @exception MBeanException if a problem occurs instantiating the
+ * @throws MBeanException if a problem occurs instantiating the
* <code>ModelMBean</code> instance
- * @exception RuntimeOperationsException if a JMX runtime error occurs
+ * @throws RuntimeOperationsException if a JMX runtime error occurs
*/
public ModelMBean createMBean()
throws InstanceNotFoundException,
@@ -336,13 +336,13 @@ public class ManagedBean implements java
* @param instance Instanced of the managed object, or <code>null</code>
* for no associated instance
*
- * @exception InstanceNotFoundException if the managed resource
+ * @throws InstanceNotFoundException if the managed resource
* object cannot be found
- * @exception InvalidTargetObjectTypeException if our MBean cannot
+ * @throws InvalidTargetObjectTypeException if our MBean cannot
* handle object references (should never happen)
- * @exception MBeanException if a problem occurs instantiating the
+ * @throws MBeanException if a problem occurs instantiating the
* <code>ModelMBean</code> instance
- * @exception RuntimeOperationsException if a JMX runtime error occurs
+ * @throws RuntimeOperationsException if a JMX runtime error occurs
*/
public ModelMBean createMBean(Object instance)
throws InstanceNotFoundException,
Modified: commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/Registry.java
URL: http://svn.apache.org/viewvc/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/Registry.java?rev=1747118&r1=1747117&r2=1747118&view=diff
==============================================================================
--- commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/Registry.java (original)
+++ commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/Registry.java Tue Jun 7 02:20:39 2016
@@ -528,7 +528,7 @@ public class Registry implements Registr
* @param stream InputStream containing the registry configuration
* information
*
- * @exception Exception if any parsing or processing error occurs
+ * @throws Exception if any parsing or processing error occurs
* @deprecated use normal class method instead
* @since 1.0
*/
@@ -1034,7 +1034,7 @@ public class Registry implements Registr
*
* @param source Source to be used to load. Can be an InputStream or URL.
*
- * @exception Exception if any parsing or processing error occurs
+ * @throws Exception if any parsing or processing error occurs
*/
public void loadDescriptors( Object source )
throws Exception
@@ -1083,7 +1083,7 @@ public class Registry implements Registr
*
* @param source Source to be used to load. Can be an InputStream or URL.
*
- * @exception Exception if any parsing or processing error occurs
+ * @throws Exception if any parsing or processing error occurs
* @deprecated Loaded automatically or using a File or Url ending in .ser
*/
public void loadCachedDescriptors( Object source )