[
https://issues.apache.org/jira/browse/PORTLETBRIDGE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030089#comment-13030089
]
Alexandr Smirnov commented on PORTLETBRIDGE-192:
------------------------------------------------
Way, ther's a good point about BridgeConfig scope. I supposed that BridgeConfig
should contain per-portlet configuration, including portlet name, standard and
extended options and so on. Moving all of them into context seems as overkill.
So, we have three scopes of information: request scope, including portlet
state, viewId, redirect parameters and request type, portlet scoped : view
portlet name, config, per-portlet options and application-wide parameters.
I suggest to have different objects for every scope: BridgeContext for current
request state, BridgeConfig that's really contains current portlet
configuration, and some for application-wide options - BridgeApplicationConfig
?.
Ther are not a lot of options at application scope, so they could be put into
BridgeConfig too.
P.S. In the Jboss bridge, BridgeImpl actually implements BridgeConfig interface
tha's available via custom BridgeContext.
> Proposal for 3.0 API: javax.portlet.faces.context.BridgeContext and
> associated BridgeContextFactory
> ---------------------------------------------------------------------------------------------------
>
> Key: PORTLETBRIDGE-192
> URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-192
> Project: MyFaces Portlet Bridge
> Issue Type: New Feature
> Components: General
> Affects Versions: 3.0.0
> Reporter: Neil Griffin
> Assignee: Michael Freedman
>
> This class contains contextual information related to the bridge. It is
> inherently request scoped, and is useful for sharing data between
> implementations of Bridge.java and ExternalContext.java
> Please refer to the following classes for this proposal:
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/context/BridgeContext.java
> http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/context/BridgeContextFactory.java
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira