[jboss-svn-commits] JBL Code SVN: r19883 - labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed May 7 09:12:16 EDT 2008
Author: wrzep
Date: 2008-05-07 09:12:15 -0400 (Wed, 07 May 2008)
New Revision: 19883
Added:
labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/YetAnotherLabsGuiceInjector.java
Removed:
labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/AdminLabsGuiceModule.java
Log:
JBLAB-950
Deleted: labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/AdminLabsGuiceModule.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/AdminLabsGuiceModule.java 2008-05-07 13:07:49 UTC (rev 19882)
+++ labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/AdminLabsGuiceModule.java 2008-05-07 13:12:15 UTC (rev 19883)
@@ -1,38 +0,0 @@
-/*
-* JBoss Labs. http://labs.jboss.com/jbosslabs
-*
-* Copyright © 2008 Red Hat Middleware, LLC. All rights reserved.
-*
-* This copyrighted material is made available to anyone wishing to use,
-* modify, copy, or redistribute it subject to the terms and conditions
-* of the GNU Lesser General Public License, v. 2.1.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT A WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License, v.2.1 along with this distribution; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-* 02110-1301, USA.
-*
-* Red Hat Author(s): Bob McWhirter, Przemyslaw Dej, Ryszard Kozmik,
-* Tomasz Szymanski, Adam Warski, Pawel Wrzeszcz
-*/
-
-package org.jboss.labs.injection.seam;
-
-import org.jboss.labs.injection.LabsGuiceModule;
-import com.google.inject.Binder;
-
-/**
- * @author Pawel Wrzeszcz (pwrzeszcz [at] jboss . org)
- **/
-
-public class AdminLabsGuiceModule extends LabsGuiceModule {
-
- public void configure(Binder binder) {
- super.configure(binder);
- }
-}
\ No newline at end of file
Added: labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/YetAnotherLabsGuiceInjector.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/YetAnotherLabsGuiceInjector.java (rev 0)
+++ labs/jbosslabs/labs-3.0-build/views/admin/src/main/java/org/jboss/labs/injection/seam/YetAnotherLabsGuiceInjector.java 2008-05-07 13:12:15 UTC (rev 19883)
@@ -0,0 +1,46 @@
+/*
+* JBoss Labs. http://labs.jboss.com/jbosslabs
+*
+* Copyright © 2008 Red Hat Middleware, LLC. All rights reserved.
+*
+* This copyrighted material is made available to anyone wishing to use,
+* modify, copy, or redistribute it subject to the terms and conditions
+* of the GNU Lesser General Public License, v. 2.1.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT A WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License, v.2.1 along with this distribution; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+* 02110-1301, USA.
+*
+* Red Hat Author(s): Bob McWhirter, Przemyslaw Dej, Ryszard Kozmik,
+* Tomasz Szymanski, Adam Warski, Pawel Wrzeszcz
+*/
+
+package org.jboss.labs.injection.seam;
+
+import org.jboss.labs.injection.LabsGuiceModule;
+import org.jboss.labs.injection.LabsInjection;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Factory;
+import org.jboss.seam.ScopeType;
+import com.google.inject.Binder;
+import com.google.inject.Injector;
+
+/**
+ * @author Pawel Wrzeszcz (pwrzeszcz [at] jboss . org)
+ **/
+
+ at Name("yetAnotherInjectorFactory")
+public class YetAnotherLabsGuiceInjector {
+
+ @Factory(value = "myInjector", scope = ScopeType.APPLICATION, autoCreate = true)
+ public Injector getInjector() {
+ System.out.println("YetAnotherLabsGuiceInjector.getInjector");
+ return LabsInjection.getInjector();
+ }
+}
\ No newline at end of file
More information about the jboss-svn-commits
mailing list