You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@onami.apache.org by si...@apache.org on 2012/12/09 10:17:15 UTC
svn commit: r1418846 - in /incubator/onami/trunk/lifecycle/src/site/apt:
after-injection.apt dispose.apt
Author: simonetripodi
Date: Sun Dec 9 09:17:14 2012
New Revision: 1418846
URL: http://svn.apache.org/viewvc?rev=1418846&view=rev
Log:
updated packages from 99soft to Apache Onami
Modified:
incubator/onami/trunk/lifecycle/src/site/apt/after-injection.apt
incubator/onami/trunk/lifecycle/src/site/apt/dispose.apt
Modified: incubator/onami/trunk/lifecycle/src/site/apt/after-injection.apt
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/lifecycle/src/site/apt/after-injection.apt?rev=1418846&r1=1418845&r2=1418846&view=diff
==============================================================================
--- incubator/onami/trunk/lifecycle/src/site/apt/after-injection.apt (original)
+++ incubator/onami/trunk/lifecycle/src/site/apt/after-injection.apt Sun Dec 9 09:17:14 2012
@@ -30,7 +30,7 @@ After Injection callbacks
has to be invoked once injection is complete:
+--------------------------------------+
-import org.nnsoft.guice.lifegycle.AfterInjection;
+import org.apache.onami.lifecycle.AfterInjection;
@Singleton // not necessary, but let's add some spice
public class MyServiceImpl
@@ -55,7 +55,7 @@ public class MyServiceImpl
+--------------------------------------+
import static com.google.inject.Guice.createInjector;
-import org.nnsoft.guice.lifegycle.AfterInjectionModule;
+import org.apache.onami.lifecycle.AfterInjectionModule;
...
@@ -65,7 +65,7 @@ Injector injector = createInjector( new
Customization
The <<<AfterInjectionModule>>> module supports dynamic definition of the annotation has to be handled; let's replace
- the <<<org.nnsoft.guice.lifegycle.AfterInjection>>> with the <<<javax.annotation.PostConstruct>>>:
+ the <<<org.apache.onami.lifecycle.AfterInjection>>> with the <<<javax.annotation.PostConstruct>>>:
+--------------------------------------+
import javax.annotation.PostConstruct;
@@ -94,10 +94,9 @@ public class MyServiceImpl
import static com.google.inject.Guice.createInjector;
import javax.annotation.PostConstruct;
-import org.nnsoft.guice.lifegycle.AfterInjectionModule;
+import org.apache.onami.lifecycle.AfterInjectionModule;
...
Injector injector = createInjector( new AfterInjectionModule( PostConstruct.class, Matchers.any() ), ... );
+--------------------------------------+
-
\ No newline at end of file
Modified: incubator/onami/trunk/lifecycle/src/site/apt/dispose.apt
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/lifecycle/src/site/apt/dispose.apt?rev=1418846&r1=1418845&r2=1418846&view=diff
==============================================================================
--- incubator/onami/trunk/lifecycle/src/site/apt/dispose.apt (original)
+++ incubator/onami/trunk/lifecycle/src/site/apt/dispose.apt Sun Dec 9 09:17:14 2012
@@ -30,7 +30,7 @@ Dispose
has to be invoked once application will be shutdown:
+--------------------------------------+
-import org.nnsoft.guice.lifegycle.Dispose;
+import org.apache.onami.lifecycle.Dispose;
@Singleton // not necessary, but let's add some spice
public class MyServiceImpl
@@ -55,17 +55,17 @@ public class MyServiceImpl
+--------------------------------------+
import static com.google.inject.Guice.createInjector;
-import org.nnsoft.guice.lifegycle.DisposeModule;
+import org.apache.onami.lifecycle.DisposeModule;
...
Injector injector = createInjector( new DisposeModule(), ... );
+--------------------------------------+
- Then, require the <<<org.nnsoft.guice.lifegycle.Disposer>>> injection to shutdown the application:
+ Then, require the <<<org.apache.onami.lifecycle.Disposer>>> injection to shutdown the application:
+--------------------------------------+
-import org.nnsoft.guice.lifegycle.Disposer;
+import org.apache.onami.lifecycle.Disposer;
...
@@ -109,7 +109,7 @@ public final class ContextListener
Dispose Handling
Users interested on tracking/logging/... objects dispose progresses, can register a
- <<<org.nnsoft.guice.lifegycle.DisposeHandler>>>, which has the following methods signatures:
+ <<<org.apache.onami.lifecycle.DisposeHandler>>>, which has the following methods signatures:
+--------------------------------------+
public interface DisposeHandler
@@ -144,7 +144,7 @@ injector.getInstance( Disposer.class ).d
Customization
The <<<DisposeModule>>> module supports dynamic definition of the annotation has to be handled; let's replace
- the <<<org.nnsoft.guice.lifegycle.Dispose>>> with the <<<javax.annotation.PreDestroy>>>:
+ the <<<org.apache.onami.lifecycle.Dispose>>> with the <<<javax.annotation.PreDestroy>>>:
+--------------------------------------+
import javax.annotation.PreDestroy;
@@ -173,7 +173,7 @@ public class MyServiceImpl
import static com.google.inject.Guice.createInjector;
import javax.annotation.PreDestroy;
-import org.nnsoft.guice.lifegycle.AfterInjectionModule;
+import org.apache.onami.lifecycle.AfterInjectionModule;
...