mcconnell 2003/02/10 23:01:07
Modified: src/java/org/apache/avalon/framework/service
ServiceException.java DefaultServiceSelector.java
Log:
Added missing javadoc and corrected some @exception declarations.
Revision Changes Path
1.17 +2 -1
avalon/src/java/org/apache/avalon/framework/service/ServiceException.java
Index: ServiceException.java
===================================================================
RCS file:
/home/cvs/avalon/src/java/org/apache/avalon/framework/service/ServiceException.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ServiceException.java 10 Feb 2003 07:19:18 -0000 1.16
+++ ServiceException.java 11 Feb 2003 07:01:07 -0000 1.17
@@ -65,7 +65,7 @@
public class ServiceException
extends CascadingException
{
- final private String m_key;
+ private final String m_key;
/**
* Construct a new <code>ServiceException</code> instance.
@@ -82,6 +82,7 @@
/**
* Construct a new <code>ServiceException</code> instance.
*
+ * @param key the lookup key
* @param message the exception message
* @param throwable the throwable
*/
1.12 +3 -3
avalon/src/java/org/apache/avalon/framework/service/DefaultServiceSelector.java
Index: DefaultServiceSelector.java
===================================================================
RCS file:
/home/cvs/avalon/src/java/org/apache/avalon/framework/service/DefaultServiceSelector.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DefaultServiceSelector.java 10 Feb 2003 07:19:18 -0000 1.11
+++ DefaultServiceSelector.java 11 Feb 2003 07:01:07 -0000 1.12
@@ -74,7 +74,7 @@
*
* @param hint the hint to retrieve Object
* @return the Object
- * @throws ComponentException if an error occurs
+ * @throws ServiceException if an error occurs
*/
public Object select( Object hint )
throws ServiceException
@@ -87,8 +87,8 @@
}
else
{
- throw new ServiceException( "Unable to provide implementation for " +
- hint.toString() );
+ throw new ServiceException( "Unable to provide implementation for "
+ + hint.toString() );
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]