Author: limpbizkit
Date: Sun Nov 16 16:05:16 2008
New Revision: 677
Modified:
wiki/ThrowingProviders.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/ThrowingProviders.wiki
==============================================================================
--- wiki/ThrowingProviders.wiki (original)
+++ wiki/ThrowingProviders.wiki Sun Nov 16 16:05:16 2008
@@ -1,4 +1,4 @@
-#summary One-sentence summary of this page.
+#summary throwing providers extension tutorial
= Throwing Providers =
@@ -19,8 +19,7 @@
T get() throws E;
}
}}}
-
-For each application exception, create an interface that extends
the !ThrowingProvider. For our news widget application, we created the
FeedProvider interface that throws a !FeedUnavailableException:
+For each application exception, create an interface that extends
the !ThrowingProvider. For our news widget application, we created
the !FeedProvider interface that throws a !FeedUnavailableException:
{{{
public interface FeedProvider<T> extends ThrowingProvider<T,
FeedUnavailableException> { }
}}}
@@ -68,4 +67,4 @@
}
}}}
==Notes on Scoping==
-Scopes work the same way they do with Providers. Each time get() is
called, the returned object will be scoped appropriately. Exceptions are
also scoped. For example, when worldNewsFeedProvider.get() throws an
exception, the same exception instance will be thrown for all callers
within the scope.
+Scopes work the same way they do with Providers. Each time get() is
called, the returned object will be scoped appropriately. Exceptions are
also scoped. For example, when worldNewsFeedProvider.get() throws an
exception, the same exception instance will be thrown for all callers
within the scope.
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---