Author: mladen.turk(a)jboss.com
Date: 2007-10-12 07:44:30 -0400 (Fri, 12 Oct 2007)
New Revision: 1108
Modified:
trunk/sight/java/org/jboss/sight/Library.java
Log:
Declare known exceptions thrown
Modified: trunk/sight/java/org/jboss/sight/Library.java
===================================================================
--- trunk/sight/java/org/jboss/sight/Library.java 2007-10-12 11:38:01 UTC (rev 1107)
+++ trunk/sight/java/org/jboss/sight/Library.java 2007-10-12 11:44:30 UTC (rev 1108)
@@ -114,7 +114,7 @@
* @param libraryName the name of the library to load
*/
static public boolean initialize(String libraryName)
- throws Exception
+ throws Exception, UnsatisfiedLinkError
{
synchronized(Library.class) {
if (_instance == null) {
@@ -153,7 +153,7 @@
* called for any APR library.
*/
static public void shutdown()
- throws Exception
+ throws Exception, UnsatisfiedLinkError
{
synchronized(Library.class) {
try {
@@ -175,7 +175,7 @@
* called for any APR library.
*/
static public void terminate()
- throws Exception
+ throws Exception, UnsatisfiedLinkError
{
shutdown();
}
@@ -187,7 +187,7 @@
* close all the native objects.
*/
static public void clear()
- throws Exception
+ throws Exception, UnsatisfiedLinkError
{
synchronized(Library.class) {
if (_instance != null) {
Show replies by date