You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dennis Kieselhorst (JIRA)" <de...@myfaces.apache.org> on 2017/02/03 14:27:51 UTC
[jira] [Resolved] (TOBAGO-1674) Allow programmatic configuration in
addition to tobago-config.xml
[ https://issues.apache.org/jira/browse/TOBAGO-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Kieselhorst resolved TOBAGO-1674.
----------------------------------------
Resolution: Fixed
It's now possible to pass a TobagoConfigFragment to the TobagoConfigBuilder directly:
{code:java}
TobagoConfigFragment tobagoConfigFragment = new TobagoConfigFragment();
tobagoConfigFragment.setCheckSecurityAnnotations(false);
TobagoConfigBuilder tobagoConfigBuilder =
new TobagoConfigBuilder(servletContext, Collections.singletonList(tobagoConfigFragment));
tobagoConfigBuilder.build();
{code}
The lock mechanism from TOBAGO-1398 is still called within initialization (in the build Method).
> Allow programmatic configuration in addition to tobago-config.xml
> -----------------------------------------------------------------
>
> Key: TOBAGO-1674
> URL: https://issues.apache.org/jira/browse/TOBAGO-1674
> Project: MyFaces Tobago
> Issue Type: Improvement
> Components: Core
> Affects Versions: 3.0.0
> Reporter: Dennis Kieselhorst
> Assignee: Dennis Kieselhorst
> Fix For: 3.1.0
>
>
> Currently Tobago is configured using a tobago-config.xml file. TobagoConfigBuilder doesn't allow to specify parameters programmatically and TobagoConfigImpl cannot be instantiated from outside the package.
> We need to improve it to allow Spring auto configuration. See draft for org.joinfaces.tobago.TobagoServletContextConfigurer in: https://github.com/deki/joinfaces/tree/tobago
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)