geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r518635 - in /geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces: LifecycleProviderFactoryGBean.java LifecycleProviderFactorySource.java LifecycleProviderGBean.java
Date Thu, 15 Mar 2007 14:15:54 GMT
Author: djencks
Date: Thu Mar 15 07:15:53 2007
New Revision: 518635

URL: http://svn.apache.org/viewvc?view=rev&rev=518635
Log:
GERONIMO-2958.  Don't register a new ApplicationIndexedLifecycleProviderFactory with every
proxy to LifecycleProviderFactoryGBean.

Added:
    geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
  (with props)
Modified:
    geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactoryGBean.java
    geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderGBean.java

Modified: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactoryGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactoryGBean.java?view=diff&rev=518635&r1=518634&r2=518635
==============================================================================
--- geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactoryGBean.java
(original)
+++ geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactoryGBean.java
Thu Mar 15 07:15:53 2007
@@ -28,7 +28,7 @@
 /**
  * @version $Rev$ $Date$
  */
-public class LifecycleProviderFactoryGBean {
+public class LifecycleProviderFactoryGBean implements LifecycleProviderFactorySource {
 
     private final ApplicationIndexedLifecycleProviderFactory factory;
 

Added: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java?view=auto&rev=518635
==============================================================================
--- geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
(added)
+++ geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
Thu Mar 15 07:15:53 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.geronimo.myfaces;
+
+/**
+ * @version $Rev:$ $Date:$
+ */
+public interface LifecycleProviderFactorySource {
+    ApplicationIndexedLifecycleProviderFactory getLifecycleProviderFactory();
+}

Propchange: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderFactorySource.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderGBean.java?view=diff&rev=518635&r1=518634&r2=518635
==============================================================================
--- geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderGBean.java
(original)
+++ geronimo/server/trunk/modules/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/LifecycleProviderGBean.java
Thu Mar 15 07:15:53 2007
@@ -47,7 +47,7 @@
     private final ClassLoader classLoader;
 
 
-    public LifecycleProviderGBean(Holder holder, Map componentContext, LifecycleProviderFactoryGBean
factory, Kernel kernel, ClassLoader classLoader) throws NamingException {
+    public LifecycleProviderGBean(Holder holder, Map componentContext, LifecycleProviderFactorySource
factory, Kernel kernel, ClassLoader classLoader) throws NamingException {
         this.holder = holder;
 //        GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
         context = EnterpriseNamingContext.createEnterpriseNamingContext(componentContext,
null, kernel, classLoader);
@@ -91,7 +91,7 @@
         infoBuilder.addAttribute("holder", Holder.class, true);
         infoBuilder.addAttribute("componentContext", Map.class, true);
 
-        infoBuilder.addReference("LifecycleProviderFactory", LifecycleProviderFactoryGBean.class);
+        infoBuilder.addReference("LifecycleProviderFactory", LifecycleProviderFactorySource.class);
 //        infoBuilder.addReference("TransactionManager", TransactionManager.class);
         infoBuilder.addAttribute("kernel", Kernel.class, false);
         infoBuilder.addAttribute("classLoader", ClassLoader.class, false);



Mime
View raw message