You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Neil Griffin (JIRA)" <de...@myfaces.apache.org> on 2011/03/17 21:20:30 UTC

[jira] Created: (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
-------------------------------------------------------------

                 Key: PORTLETBRIDGE-189
                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
             Project: MyFaces Portlet Bridge
          Issue Type: New Feature
          Components: General
    Affects Versions: 3.0.0
            Reporter: Neil Griffin
            Assignee: Michael Freedman


Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.

In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html

For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008752#comment-13008752 ] 

Neil Griffin edited comment on PORTLETBRIDGE-189 at 3/29/11 8:12 PM:
---------------------------------------------------------------------

Factory discovery by the implementation should support the following syntax in any META-INF/faces-config.xml in the classpath, or WEB-INF/faces-config.xml in the WAR:


	<factory>
		<factory-extension>
			<bridge:bridge-factory>FQCN</bridge:bridge-factory>
			<bridge:bridge-context-factory>FQCN</bridge:bridge-context-factory>
			<bridge:bridge-navigation-handler-factory>FQCN</bridge:bridge-navigation-handler-factory>
			<bridge:bridge-request-scope-factory>FQCN</bridge:bridge-request-scope-factory>
			<bridge:bridge-scope-manager-factory>FQCN</bridge:bridge-scope-manager-factory>
			<bridge:portlet-container-adapter-factory>FQCN</bridge:portlet-container-adapter-factory>
		</factory-extension>
	</factory>


      was (Author: ngriffin7a):
    Factory discovery by the implementation should support the following syntax in any META-INF/faces-config.xml in the classpath, or WEB-INF/faces-config.xml in the WAR:


	<factory>
		<factory-extension>
			<bridge:bridge-factory>FQCN</bridge:bridge-factory>
			<bridge:bridge-context-factory>FQCN</bridge:bridge-context-factory>
			<bridge:bridge-navigation-handler-factory>FQCN</bridge:bridge-navigation-handler-factory>
			<bridge:bridge-request-scope-factory>FQCN</bridge:bridge-request-scope-factory>
			<bridge:portlet-container-adapter-factory>FQCN</bridge:portlet-container-adapter-factory>
		</factory-extension>
	</factory>

  
> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Alexandr Smirnov (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009719#comment-13009719 ] 

Alexandr Smirnov commented on PORTLETBRIDGE-189:
------------------------------------------------

@Neil: By design, I suppose to replace Factory implementation by BeanManager wrapper where CDI is available, so it's easy to integrate CDI with that architecture.

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Alexandr Smirnov (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009380#comment-13009380 ] 

Alexandr Smirnov commented on PORTLETBRIDGE-189:
------------------------------------------------

The interfaces and base ServiceTracker class are there - http://anonsvn.jboss.org/repos/richfaces/trunk/core/api/src/main/java/org/richfaces/application ,
and the implementation is there http://anonsvn.jboss.org/repos/richfaces/trunk/core/impl/src/main/java/org/richfaces/application

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009325#comment-13009325 ] 

Neil Griffin commented on PORTLETBRIDGE-189:
--------------------------------------------

Hi Alexander, can you paste a link to the source in SVN? I tried to find in the trunk but didn't see it.

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008752#comment-13008752 ] 

Neil Griffin commented on PORTLETBRIDGE-189:
--------------------------------------------

Factory discovery by the implementation should support the following syntax in any META-INF/faces-config.xml in the classpath, or WEB-INF/faces-config.xml in the WAR:


	<factory>
		<factory-extension>
			<bridge:bridge-factory>FQCN</bridge:bridge-factory>
			<bridge:bridge-context-factory>FQCN</bridge:bridge-context-factory>
			<bridge:bridge-navigation-handler-factory>FQCN</bridge:bridge-navigation-handler-factory>
			<bridge:bridge-request-scope-factory>FQCN</bridge:bridge-request-scope-factory>
			<bridge:portlet-container-adapter-factory>FQCN</bridge:portlet-container-adapter-factory>
		</factory-extension>
	</factory>


> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009035#comment-13009035 ] 

Scott O'Bryan commented on PORTLETBRIDGE-189:
---------------------------------------------

I'm assuming you follow the complete heirarchy for the FactoryFinder?

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009609#comment-13009609 ] 

Neil Griffin commented on PORTLETBRIDGE-189:
--------------------------------------------

I like it. I like it alot.

@Alexander: Is ServiceTracker fully CDI compatible in its current form?

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008632#comment-13008632 ] 

Neil Griffin commented on PORTLETBRIDGE-189:
--------------------------------------------

Note that I just did a commit to the BridgeFactoryFinder.java class and simplified it. Please review when y'all get a chance. It now has the ability to have a BridgeFactoryFinderImpl.java in the bridge implementation.

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009069#comment-13009069 ] 

Neil Griffin commented on PORTLETBRIDGE-189:
--------------------------------------------

Hi Scott, could you clarify for my what you mean by "follow the complete hierarchy" ? Thanks.

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009325#comment-13009325 ] 

Neil Griffin edited comment on PORTLETBRIDGE-189 at 3/21/11 7:29 PM:
---------------------------------------------------------------------

Hi Alexander, can you paste a link to the source in SVN? I tried to find in the bridge trunk but didn't see it. Is it part of the RichFaces trunk?

      was (Author: ngriffin7a):
    Hi Alexander, can you paste a link to the source in SVN? I tried to find in the trunk but didn't see it.
  
> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Alexandr Smirnov (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009307#comment-13009307 ] 

Alexandr Smirnov commented on PORTLETBRIDGE-189:
------------------------------------------------

JSF FactoryFinder has been created in JRE 1.4 age, therefore it doesn't leverage JDK 5+ generics. I propose to use more type safe implementation, similar to the one used in richfaces library:
https://docs.google.com/document/pub?id=1cCoeesqZYcUU4sth53Xhu7eY3Jycb9VSTJLEY7-k0eg . 
The main difference with JSF FactoryFinger is using Factory/Service classes as the key, that lets Java compiler decide proper return type for the instance.
Also, because Bridge is JSF extension, we can use system events to initialize and release bridge in the proper place, instead of the first request, to avoid synchronization problems.

> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (PORTLETBRIDGE-189) Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder

Posted by "Neil Griffin (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008752#comment-13008752 ] 

Neil Griffin edited comment on PORTLETBRIDGE-189 at 3/30/11 11:38 AM:
----------------------------------------------------------------------

Factory discovery by the implementation should support the following syntax in any META-INF/faces-config.xml in the classpath, or WEB-INF/faces-config.xml in the WAR:


	<factory>
		<factory-extension>
			<bridge:bridge-factory>FQCN</bridge:bridge-factory>
			<bridge:bridge-context-factory>FQCN</bridge:bridge-context-factory>
			<bridge:bridge-navigation-handler-factory>FQCN</bridge:bridge-navigation-handler-factory>
			<bridge:bridge-request-scope-factory>FQCN</bridge:bridge-request-scope-factory>
			<bridge:bridge-request-scope-manager-factory>FQCN</bridge:bridge-request-scope-manager-factory>
			<bridge:portlet-container-adapter-factory>FQCN</bridge:portlet-container-adapter-factory>
		</factory-extension>
	</factory>


      was (Author: ngriffin7a):
    Factory discovery by the implementation should support the following syntax in any META-INF/faces-config.xml in the classpath, or WEB-INF/faces-config.xml in the WAR:


	<factory>
		<factory-extension>
			<bridge:bridge-factory>FQCN</bridge:bridge-factory>
			<bridge:bridge-context-factory>FQCN</bridge:bridge-context-factory>
			<bridge:bridge-navigation-handler-factory>FQCN</bridge:bridge-navigation-handler-factory>
			<bridge:bridge-request-scope-factory>FQCN</bridge:bridge-request-scope-factory>
			<bridge:bridge-scope-manager-factory>FQCN</bridge:bridge-scope-manager-factory>
			<bridge:portlet-container-adapter-factory>FQCN</bridge:portlet-container-adapter-factory>
		</factory-extension>
	</factory>

  
> Proposal for 3.0 API: javax.portlet.faces.BridgeFactoryFinder
> -------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-189
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-189
>             Project: MyFaces Portlet Bridge
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Michael Freedman
>
> Discussion of *which* factories can be done in other issues, but I wanted to discuss the idea of having a BridgeFactoryFinder in this issue.
> In order to make the bridge more extensible, I would propose a javax.portlet.faces.BridgeFactoryFinder based on the same idea found in Faces:
> http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/FactoryFinder.html
> For a prototype of this idea, please refer to the following class in the PortletFaces Bridge trunk:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeFactoryFinder.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira