svn commit: r864998 [5/15] - in /websites/staging/deltaspike/trunk/content: ./ deltaspike/ deltaspike/draft/ deltaspike/resources/ draft/ resources/ resources/css/ resources/files/ resources/images/ r
Added: websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html == --- websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html (added) +++ websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html Sun Jun 9 09:26:31 2013 @@ -0,0 +1,830 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - porposed CDI-1.1 enhancements/title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./../deltaspike/resources/css/bootstrap.css rel=stylesheet +!--link href=./../deltaspike/resources/css/prettify.css rel=stylesheet / -- +link href=./../deltaspike/resources/css/codehilite.css rel=stylesheet / +link href=./../deltaspike/resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./../deltaspike/resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./../deltaspike/index.htmlHome/a/li +lia href=./../deltaspike/documentation.htmlDocumentation/a/li +lia href=./../deltaspike/source.htmlSource/a/li +!-- lia href=./../deltaspike/download.htmlDownload/a/li -- +lia href=./../deltaspike/community.htmlCommunity/a/li +!-- lia href=./../deltaspike/support.htmlSupport/a/li -- +lia href=./../deltaspike/news.htmlNews/a/li +lia href=./../deltaspike/migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=incubator.apache.org/deltaspike name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1porposed CDI-1.1 enhancements/h1 + /div + pThis page contains proposals of the DeltaSpike community for CDI 1.1. Some parts might be used also for DeltaSpike for CDI 1.0./p +h1 id=context-management-with-community-agreementContext Management (with community agreement)/h1 +div class=codehiliteprespan class=npublic/span span class=ninterface/span span class=nManagedContext/span span class=nextends/span span class=nContext/span +span class=p{/span +span class=nvoid/span span class=nstart/spanspan class=p();/span + +span class=nvoid/span span class=nstop/spanspan class=p();/span +span class=p}/span
svn commit: r864998 [2/15] - in /websites/staging/deltaspike/trunk/content: ./ deltaspike/ deltaspike/draft/ deltaspike/resources/ draft/ resources/ resources/css/ resources/files/ resources/images/ r
Added: websites/staging/deltaspike/trunk/content/build.html == --- websites/staging/deltaspike/trunk/content/build.html (added) +++ websites/staging/deltaspike/trunk/content/build.html Sun Jun 9 09:26:31 2013 @@ -0,0 +1,175 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - Building DeltaSpike from source/title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./deltaspike/resources/css/bootstrap.css rel=stylesheet +!--link href=./deltaspike/resources/css/prettify.css rel=stylesheet / -- +link href=./deltaspike/resources/css/codehilite.css rel=stylesheet / +link href=./deltaspike/resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./deltaspike/resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./deltaspike/index.htmlHome/a/li +lia href=./deltaspike/documentation.htmlDocumentation/a/li +lia href=./deltaspike/source.htmlSource/a/li +!-- lia href=./deltaspike/download.htmlDownload/a/li -- +lia href=./deltaspike/community.htmlCommunity/a/li +!-- lia href=./deltaspike/support.htmlSupport/a/li -- +lia href=./deltaspike/news.htmlNews/a/li +lia href=./deltaspike/migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=incubator.apache.org/deltaspike name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1Building DeltaSpike from source/h1 + /div + pDeltaspike uses a href=http://maven.apache.org/;maven/a build tool to automate the compilation, testing and packaging of the project/p +h2 id=full-buildFull build/h2 +div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span +/pre/div + + +h2 id=build-with-testBuild with test/h2 +div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPOWB/span span class=o///spanspan class=nexecute/span span class=nthe/span span class=nunit/span span class=ntests/span span class=nwith/span span class=nOpenWebBeans/span +span class=nor/span +span class=nmvn/span span
svn commit: r864998 [4/15] - in /websites/staging/deltaspike/trunk/content: ./ deltaspike/ deltaspike/draft/ deltaspike/resources/ draft/ resources/ resources/css/ resources/files/ resources/images/ r
Added: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (added) +++ websites/staging/deltaspike/trunk/content/documentation.html Sun Jun 9 09:26:31 2013 @@ -0,0 +1,428 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - Documentation/title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./deltaspike/resources/css/bootstrap.css rel=stylesheet +!--link href=./deltaspike/resources/css/prettify.css rel=stylesheet / -- +link href=./deltaspike/resources/css/codehilite.css rel=stylesheet / +link href=./deltaspike/resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./deltaspike/resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./deltaspike/index.htmlHome/a/li +lia href=./deltaspike/documentation.htmlDocumentation/a/li +lia href=./deltaspike/source.htmlSource/a/li +!-- lia href=./deltaspike/download.htmlDownload/a/li -- +lia href=./deltaspike/community.htmlCommunity/a/li +!-- lia href=./deltaspike/support.htmlSupport/a/li -- +lia href=./deltaspike/news.htmlNews/a/li +lia href=./deltaspike/migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=incubator.apache.org/deltaspike name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1Documentation/h1 + /div + div class=toc +ul +lia href=#introductionIntroduction/a/li +lia href=#getting-startedGetting Started/aul +lia href=#project-configuration-without-mavenProject Configuration without Maven/a/li +lia href=#project-configuration-with-mavenProject Configuration with Maven/aul +lia href=#configuration-of-deltaspike-coreConfiguration of DeltaSpike Core/a/li +lia href=#configuration-of-deltaspike-modulesConfiguration of DeltaSpike Modules/aul +lia href=#security-moduleSecurity Module/a/li +lia href=#jpa-moduleJPA Module/a/li +lia href=#jsf-moduleJSF Module/a/li +/ul +/li +lia href=#with-java-seWith Java SE/aul +lia href=#add-the-deltaspike-container-ctrl-apiAdd the DeltaSpike
svn commit: r865002 [3/3] - in /websites/staging/deltaspike/trunk/content: ./ draft/
Modified: websites/staging/deltaspike/trunk/content/supporters.html == --- websites/staging/deltaspike/trunk/content/supporters.html (original) +++ websites/staging/deltaspike/trunk/content/supporters.html Sun Jun 9 09:54:03 2013 @@ -16,10 +16,10 @@ !-- Styles -- -link href=.//resources/css/bootstrap.css rel=stylesheet -!--link href=.//resources/css/prettify.css rel=stylesheet / -- -link href=.//resources/css/codehilite.css rel=stylesheet / -link href=.//resources/css/bootstrap-responsive.css rel=stylesheet +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet style type=text/css body { padding-top: 60px; @@ -51,17 +51,17 @@ span class=icon-bar/span span class=icon-bar/span /a -a class=brand href=index.htmlimg src=.//resources/images/deltaspike-logo-medium.png//a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a div class=nav-collapse ul class=nav -li class=activea href=.//index.htmlHome/a/li -lia href=.//documentation.htmlDocumentation/a/li -lia href=.//source.htmlSource/a/li -!-- lia href=.//download.htmlDownload/a/li -- -lia href=.//community.htmlCommunity/a/li -!-- lia href=.//support.htmlSupport/a/li -- -lia href=.//news.htmlNews/a/li -lia href=.//migration-guide.htmlMigration/a/li +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li /ul /div!--/.nav-collapse -- form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right @@ -124,21 +124,21 @@ !-- Javascript == -- !-- Placed at the end of the document so the pages load faster -- -!--script src=.//resources/js/prettyfy.js/script -- -script src=.//resources/js/prettyprint.js/script -script src=.//resources/js/jquery.js/script -script src=.//resources/js/bootstrap-transition.js/script -script src=.//resources/js/bootstrap-alert.js/script -script src=.//resources/js/bootstrap-modal.js/script -script src=.//resources/js/bootstrap-dropdown.js/script -script src=.//resources/js/bootstrap-scrollspy.js/script -script src=.//resources/js/bootstrap-tab.js/script -script src=.//resources/js/bootstrap-tooltip.js/script -script src=.//resources/js/bootstrap-popover.js/script -script src=.//resources/js/bootstrap-button.js/script -script src=.//resources/js/bootstrap-collapse.js/script -script src=.//resources/js/bootstrap-carousel.js/script -script src=.//resources/js/bootstrap-typeahead.js/script +!--script src=./resources/js/prettyfy.js/script -- +script src=./resources/js/prettyprint.js/script +script src=./resources/js/jquery.js/script +script src=./resources/js/bootstrap-transition.js/script +script src=./resources/js/bootstrap-alert.js/script +script src=./resources/js/bootstrap-modal.js/script +script src=./resources/js/bootstrap-dropdown.js/script +script src=./resources/js/bootstrap-scrollspy.js/script +script src=./resources/js/bootstrap-tab.js/script +script src=./resources/js/bootstrap-tooltip.js/script +script src=./resources/js/bootstrap-popover.js/script +script src=./resources/js/bootstrap-button.js/script +script src=./resources/js/bootstrap-collapse.js/script +script src=./resources/js/bootstrap-carousel.js/script +script src=./resources/js/bootstrap-typeahead.js/script /body /html
svn commit: r865008 [3/3] - in /websites/staging/deltaspike/trunk/content: ./ draft/
Modified: websites/staging/deltaspike/trunk/content/supporters.html == --- websites/staging/deltaspike/trunk/content/supporters.html (original) +++ websites/staging/deltaspike/trunk/content/supporters.html Sun Jun 9 10:23:55 2013 @@ -16,10 +16,10 @@ !-- Styles -- -link href=/supporters.htmlresources/css/bootstrap.css rel=stylesheet -!--link href=/supporters.htmlresources/css/prettify.css rel=stylesheet / -- -link href=/supporters.htmlresources/css/codehilite.css rel=stylesheet / -link href=/supporters.htmlresources/css/bootstrap-responsive.css rel=stylesheet +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet style type=text/css body { padding-top: 60px; @@ -51,17 +51,17 @@ span class=icon-bar/span span class=icon-bar/span /a -a class=brand href=index.htmlimg src=/supporters.htmlresources/images/deltaspike-logo-medium.png//a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a div class=nav-collapse ul class=nav -li class=activea href=/supporters.htmlindex.htmlHome/a/li -lia href=/supporters.htmldocumentation.htmlDocumentation/a/li -lia href=/supporters.htmlsource.htmlSource/a/li -!-- lia href=/supporters.htmldownload.htmlDownload/a/li -- -lia href=/supporters.htmlcommunity.htmlCommunity/a/li -!-- lia href=/supporters.htmlsupport.htmlSupport/a/li -- -lia href=/supporters.htmlnews.htmlNews/a/li -lia href=/supporters.htmlmigration-guide.htmlMigration/a/li +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li /ul /div!--/.nav-collapse -- form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right @@ -124,21 +124,21 @@ !-- Javascript == -- !-- Placed at the end of the document so the pages load faster -- -!--script src=/supporters.htmlresources/js/prettyfy.js/script -- -script src=/supporters.htmlresources/js/prettyprint.js/script -script src=/supporters.htmlresources/js/jquery.js/script -script src=/supporters.htmlresources/js/bootstrap-transition.js/script -script src=/supporters.htmlresources/js/bootstrap-alert.js/script -script src=/supporters.htmlresources/js/bootstrap-modal.js/script -script src=/supporters.htmlresources/js/bootstrap-dropdown.js/script -script src=/supporters.htmlresources/js/bootstrap-scrollspy.js/script -script src=/supporters.htmlresources/js/bootstrap-tab.js/script -script src=/supporters.htmlresources/js/bootstrap-tooltip.js/script -script src=/supporters.htmlresources/js/bootstrap-popover.js/script -script src=/supporters.htmlresources/js/bootstrap-button.js/script -script src=/supporters.htmlresources/js/bootstrap-collapse.js/script -script src=/supporters.htmlresources/js/bootstrap-carousel.js/script -script src=/supporters.htmlresources/js/bootstrap-typeahead.js/script +!--script src=./resources/js/prettyfy.js/script -- +script src=./resources/js/prettyprint.js/script +script src=./resources/js/jquery.js/script +script src=./resources/js/bootstrap-transition.js/script +script src=./resources/js/bootstrap-alert.js/script +script src=./resources/js/bootstrap-modal.js/script +script src=./resources/js/bootstrap-dropdown.js/script +script src=./resources/js/bootstrap-scrollspy.js/script +script src=./resources/js/bootstrap-tab.js/script +script src=./resources/js/bootstrap-tooltip.js/script +script src=./resources/js/bootstrap-popover.js/script +script src=./resources/js/bootstrap-button.js/script +script src=./resources/js/bootstrap-collapse.js/script +script src=./resources/js/bootstrap-carousel.js/script +script src=./resources/js/bootstrap-typeahead.js/script /body /html
svn commit: r865101 - /websites/staging/deltaspike/trunk/content/
Author: buildbot Date: Mon Jun 10 08:09:37 2013 New Revision: 865101 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/I18n.html websites/staging/deltaspike/trunk/content/build.html websites/staging/deltaspike/trunk/content/community.html websites/staging/deltaspike/trunk/content/download.html websites/staging/deltaspike/trunk/content/examples.html websites/staging/deltaspike/trunk/content/exceptions.html websites/staging/deltaspike/trunk/content/migration-guide.html websites/staging/deltaspike/trunk/content/new-committer.html websites/staging/deltaspike/trunk/content/news.html websites/staging/deltaspike/trunk/content/project-name.html websites/staging/deltaspike/trunk/content/release-preparation.html websites/staging/deltaspike/trunk/content/source.html websites/staging/deltaspike/trunk/content/spi.html websites/staging/deltaspike/trunk/content/suggested-git-workflows.html websites/staging/deltaspike/trunk/content/supporters.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Jun 10 08:09:37 2013 @@ -1 +1 @@ -1491266 +1491367 Modified: websites/staging/deltaspike/trunk/content/I18n.html == --- websites/staging/deltaspike/trunk/content/I18n.html (original) +++ websites/staging/deltaspike/trunk/content/I18n.html Mon Jun 10 08:09:37 2013 @@ -78,7 +78,30 @@ div class=page-title h1I18n/h1 /div - h2 id=type-safe-messagesType-safe messages/h2 + div class=toc +ul +lia href=#introductionIntroduction/aul +lia href=#type-safe-messagesType-safe messages/aul +lia href=#simple-use-caseSimple use-case/a/li +/ul +/li +lia href=#dynamic-message-builderDynamic Message Builder/aul +lia href=#creating-message-instancesCreating message instances/a/li +lia href=#customizing-the-message-contextCustomizing the message context/aul +lia href=#messageresolverMessageResolver/a/li +lia href=#messageinterpolatorMessageInterpolator/a/li +lia href=#localeresolverLocaleResolver/a/li +/ul +/li +/ul +/li +/ul +/li +/ul +/div +hr / +h1 id=introductionIntroduction/h1 +h2 id=type-safe-messagesType-safe messages/h2 h3 id=simple-use-caseSimple use-case/h3 pThe following implementation is the minimal effort to use type-safe messages (which are hardcoded in this case)./p pstrongSimple type-safe message/strong/p Modified: websites/staging/deltaspike/trunk/content/build.html == --- websites/staging/deltaspike/trunk/content/build.html (original) +++ websites/staging/deltaspike/trunk/content/build.html Mon Jun 10 08:09:37 2013 @@ -78,7 +78,32 @@ div class=page-title h1Building DeltaSpike from source/h1 /div - pDeltaspike uses a href=http://maven.apache.org/;maven/a build tool to automate the compilation, testing and packaging of the project/p + div class=toc +ul +lia href=#introductionIntroduction/aul +lia href=#full-buildFull build/a/li +lia href=#build-with-testBuild with test/a/li +lia href=#build-exampleBuild example/a/li +lia href=#integration-testsIntegration Tests/aul +lia href=#tomeeTomEE/a/li +lia href=#jbossas7JBossAS7/aul +lia href=#without-existing-as7Without existing AS7/a/li +lia href=#with-existing-as7With existing AS7/a/li +/ul +/li +lia href=#glassfish-31GlassFish 3.1/a/li +lia href=#weblogic-12cWebLogic 12c/a/li +/ul +/li +lia href=#jenkins-buildsJenkins Builds/a/li +lia href=#sonarSonar/a/li +/ul +/li +/ul +/div +hr / +h1 id=introductionIntroduction/h1 +pDeltaspike uses a href=http://maven.apache.org/;maven/a build tool to automate the compilation, testing and packaging of the project/p h2 id=full-buildFull build/h2 div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span /pre/div Modified: websites/staging/deltaspike/trunk/content/community.html == --- websites/staging/deltaspike/trunk/content/community.html (original) +++ websites/staging/deltaspike/trunk/content/community.html Mon Jun 10 08:09:37 2013 @@ -78,7 +78,24 @@ div class=page-title h1Community/h1 /div - h1 id=usersUsers/h1 + div class=toc +ul +lia href=#introductionIntroduction/a/li +lia href=#usersUsers/a/li +lia href=#getting-involvedGetting Involved/aul +lia href=#contributorsContributors/a/li +lia href=#committersCommitters/a/li +/ul +/li +lia href=#mailing-listsMailing lists/a/li +lia href=#jiraJIRA/a/li +lia href=#spread-the-wordSpread the word/a/li
svn commit: r865154 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Mon Jun 10 16:09:06 2013 New Revision: 865154 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Jun 10 16:09:06 2013 @@ -1 +1 @@ -1491367 +1491517 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Mon Jun 10 16:09:06 2013 @@ -150,6 +150,14 @@ created./p In the listings below replace the placeholders for the version with the version of your choice or use:/p div class=codehiliteprespan class=ntlt;propertiesgt;/span span class=ntlt;deltaspike.versiongt;/span0.4-incubating-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.4span class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;/propertiesgt;/span +/pre/div + + +pOr if you want to very bleeding edge, point to our current snapshot./p +div class=codehiliteprespan class=ntlt;propertiesgt;/span +span class=ntlt;deltaspike.versiongt;/span0.5-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div
svn commit: r865527 - in /websites/staging/deltaspike/trunk/content: ./ core.html projectstage.html
Author: buildbot Date: Thu Jun 13 09:05:41 2013 New Revision: 865527 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/projectstage.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/core.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Jun 13 09:05:41 2013 @@ -1 +1 @@ -1492578 +1492584 Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Thu Jun 13 09:05:41 2013 @@ -84,14 +84,7 @@ lia href=#deltaspike-configurationDeltaSpike Configuration/a/li lia href=#beanproviderBeanProvider/a/li lia href=#beanmanagerproviderBeanManagerProvider/a/li -lia href=#type-safe-projectstageType-safe ProjectStage/aul -lia href=#custom-project-stagesCustom Project Stages/a/li -/ul -/li -lia href=#projectstageproducer-for-3rd-party-portable-extensionsProjectStageProducer (for 3rd party portable extensions)/aul -lia href=#setting-the-active-projectstageSetting the active ProjectStage/a/li -/ul -/li +lia href=#type-safe-projectstageType-safe ProjectStage/a/li lia href=#exclude@Exclude/aul lia href=#custom-expressioninterpreterCustom ExpressionInterpreter/a/li /ul @@ -215,66 +208,9 @@ If a simple but manual bean-lookup is ne h2 id=type-safe-projectstageType-safe ProjectStage/h2 -pProject stages allow to use implementations depending on the current environment. E.g. you can implement a bean which creates sample-data for system tests which gets activated only in case of project-stage codeSystemTest/code./p -pemBesides custom project-stages/em it's possible to use the following pre-defined project-stages:/p -ul -liUnitTest/li -liDevelopment/li -liSystemTest/li -liIntegrationTest/li -liStaging/li -liProduction/li -/ul -pThe core provides a pluggable and type-safe approach for using project stages in a project (it's also used within the framework). Furthermore, code@Exclude/code allows to use e.g. implementations annotated with codejavax.enterprise.inject.Alternative/code for specific project-stages. Besides the out-of-the-box project-stages it's possible to implement emcustom but type-safe/em project-stages which will be exposed by DeltaSpike./p -pResolving and using the Project-Stage:/p -div class=codehiliteprespan class=nd@Inject/span -span class=kdprivate/span span class=nProjectStage/span span class=nprojectStage/spanspan class=o;/span - -span class=c1//.../span - -span class=ktboolean/span span class=nisDevProjectStage/span span class=o=/span span class=nProjectStage/spanspan class=o./spanspan class=naDevelopment/spanspan class=o./spanspan class=naequals/spanspan class=o(/spanspan class=kthis/spanspan class=o./spanspan class=naprojectStage/spanspan class=o);/span -/pre/div - - -h3 id=custom-project-stagesCustom Project Stages/h3 -pIt's possible to provide custom project stage implementations. -Therefore, you have to provide an implementation of the codeProjectStageHolder/code interface. -In this class you nest the custom project-stage implementations which have to be codepublic static final class/code and it's required to extend codeProjectStage/code. -It's required to provide a codepublic static final/code instance even though, you won't use it directly./p -pProjectStageHolder for custom project stage implementations:/p -div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncCustomProjectStageHolder/span span class=kdimplements/span span class=nProjectStageHolder/span -span class=o{/span -span class=kdpublic/span span class=kdstatic/span span class=kdfinal/span span class=kdclass/span span class=ncCustomProjectStage/span span class=kdextends/span span class=nProjectStage/span -span class=o{/span -span class=kdprivate/span span class=kdstatic/span span class=kdfinal/span span class=ktlong/span span class=nserialVersionUID/span span class=o=/span span class=mi1029094387976167179L/spanspan class=o;/span -span class=o}/span - -span class=kdpublic/span span class=kdstatic/span span class=kdfinal/span span class=nCustomProjectStage/span span class=nCustomProjectStage/span span class=o=/span span class=knew/span span class=nCustomProjectStage/spanspan class=o();/span -span class=o}/span -/pre/div - - -pConfigure your custom codeProjectStageHolder/code in codeMETA-INF/services/org.apache.deltaspike.core.api.projectstage.ProjectStageHolder/code. The file has to provide the emfully qualified/em class name of the custom implementation of the codeProjectStageHolder/code interface./p -pUsage of a custom project stage:/p -div class=codehiliteprespan class
svn commit: r865753 - in /websites/staging/deltaspike/trunk/content: ./ configuration.html
Author: buildbot Date: Sat Jun 15 14:25:27 2013 New Revision: 865753 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/configuration.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Jun 15 14:25:27 2013 @@ -1 +1 @@ -1492584 +1493366 Modified: websites/staging/deltaspike/trunk/content/configuration.html == --- websites/staging/deltaspike/trunk/content/configuration.html (original) +++ websites/staging/deltaspike/trunk/content/configuration.html Sat Jun 15 14:25:27 2013 @@ -189,6 +189,12 @@ lookup chain is used until a value got f h3 id=handling-of-default-valueshandling of default values/h3 pThere is a 2nd variant of all those methods where it is possible to provide a default value which gets returned instead of codenull/code or if the final result is an empty String./p +pstrongPerformance Hint:/strong/p +pThe only codeConfigResolver/code operation which is cached is the determination of the codeConfigSources/code. +The various getPropertyValue operations are not cached in the ConfigResolver but might be cached in +the ConfigSources. This makes the overall calculation a bit slower, but allows for values to change +dynamically if someone likes to e.g. implement a codeJmxConfigSource/code (not yet part of DeltaSpike, +but easily implementable)./p h1 id=configsourceConfigSource/h1 pA codeConfigSource/code is exactly what it's name says: a source for configured values. The codeConfigResolver/code uses all configured implementations of codeConfigSource/code to lookup the property in question./p @@ -210,7 +216,9 @@ within the release binaries./p pstrongNote:/strong Important Hints esp. for custom implementations: - The config-source with the highest ordinal gets used first. - If a custom implementation should be invoked embefore/em the default implementations, use an ordinal-value gt; 400 - - If a custom implementation should be invoked emafter/em the default implementations, use an ordinal-value lt; 100/p + - If a custom implementation should be invoked emafter/em the default implementations, use an ordinal-value lt; 100 + - The codeConfigResolver/code performs no caching. If your custom ConfigSource operation is expensive, then you might +think about introducing some caching./p h3 id=reordering-of-the-default-order-of-config-sourcesReordering of the default order of Config-Sources/h3 pTo change the lookup order, you have to configure the ordinal in the corresponding config source (e.g. to change the config ordinal of the config source for system properties, you have to set
svn commit: r868692 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Jul 7 13:33:03 2013 New Revision: 868692 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Jul 7 13:33:03 2013 @@ -1 +1 @@ -1493366 +1500426 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Jul 7 13:33:03 2013 @@ -741,6 +741,9 @@ Via a codeTargetViewConfigProvider/co h2 id=view-config-spiView-Config SPI/h2 p[TODO]/p h2 id=activation-of-custom-naming-conventionsActivation of custom naming conventions/h2 +pDeltaSpike allows to customize the default naming convention via codeView.DefaultBasePathBuilder/code and/or codeView.DefaultFileNameBuilder/code and/or codeView.DefaultExtensionBuilder/code. +It's possible to change it for one usage via codeView.basePathBuilder/code and/or codeView.fileNameBuilder/code and/or codeView.extensionBuilder/code or globally via the config mechanism provided by DeltaSpike. +The same is supported for folders via codeFolder.DefaultFolderNameBuilder/code. In this case changing only one usage is possible via codeFolder.folderNameBuilder/code./p h1 id=support-of-ear-deploymentsSupport of EAR deployments/h1 pBefore using features described by this page, please ensure that you are aware of a href=https://issues.apache.org/jira/browse/DELTASPIKE-335;DELTASPIKE-335/a and the corresponding impact./p h1 id=hintsHints/h1
svn commit: r879530 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Mon Sep 23 05:54:04 2013 New Revision: 879530 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Sep 23 05:54:04 2013 @@ -1 +1 @@ -1503088 +1525510 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Mon Sep 23 05:54:04 2013 @@ -130,13 +130,12 @@ pApache DeltaSpike project has been created to support the development of portable CDI extensions that provide useful features for Java applications not provided out of the box by the CDI spec (Security, JPA, ...). CDI extensions created by the DeltaSpike community are packaged as modules./p pThe goal of the project is also to provide useful classes to :/p -div class=codehiliteprespan class=o*/span span class=nBoot/span span class=nCDI/span span class=nContainer/span span class=p(/spanspan class=nWeld/spanspan class=p,/span span class=nOpenWebbeans/spanspan class=p,/span span class=nOpenEJB/spanspan class=p)/span span class=kfor/span span class=nJava/span span class=nSE/spanspan class=p,/span -span class=o*/span span class=nStage/span span class=na/span span class=nproject/spanspan class=p,/span -span class=o*/span span class=nProvide/span span class=nnew/span span class=nscopes/span span class=p(/spanspan class=nWindow/span span class=nScope/spanspan class=p,/span span class=p...),/span -span class=o*/span span class=nManage/span span class=nmessages/span span class=nand/span span class=nconfigurations/span -/pre/div - - +ul +liBoot CDI Container (Weld, OpenWebbeans, OpenEJB) for Java SE,/li +liStage a project,/li +liProvide new scopes (Window Scope, ...),/li +liManage messages and configurations/li +/ul pThe project is currently tested on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java Web containers like Apache TomEE or JavaEE, JBoss-AS7, Oracle GlassFish 3.1+, Oracle Weblogic Server 12c./p p[TODO] Define what portable means like also CDI extension and refers to documentation links/p h1 id=getting-startedGetting Started/h1
svn commit: r879811 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html servlet.html
Author: buildbot Date: Wed Sep 25 05:03:53 2013 New Revision: 879811 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/servlet.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Sep 25 05:03:53 2013 @@ -1 +1 @@ -1525510 +1526108 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Sep 25 05:03:53 2013 @@ -90,6 +90,7 @@ lia href=#jpa-moduleJPA Module/a/li lia href=#jsf-moduleJSF Module/a/li lia href=#bean-validation-moduleBean Validation Module/a/li +lia href=#servlet-moduleServlet Module/a/li /ul /li lia href=#with-java-seWith Java SE/aul @@ -117,6 +118,7 @@ lia href=#jsf-optionalJSF (optional)/a/li lia href=#container-control-optionalContainer Control (optional)/a/li lia href=#bean-validation-optionalBean Validation (optional)/a/li +lia href=#servlet-optionalServlet (optional)/a/li /ul /li lia href=#externalExternal/aul @@ -241,6 +243,23 @@ In the listings below replace the placeh /pre/div +h4 id=servlet-moduleServlet Module/h4 +div class=codehiliteprespan class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-servlet-module-apispan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spancompilespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span + +span class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-servlet-module-implspan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spanruntimespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span +/pre/div + + h3 id=with-java-seWith Java SE/h3 pTo use DeltaSpike with Java SE, we must provide additional jars file corresponding to the DeltaSpike CDI Controller API and its implementation. The Controller uses Java Services to resolve the CDI container (a href=http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/;JBoss Weld/a, a href=http://openwebbeans.apache.org;Apache OpenWebbeans/a (and a href=http://openejb.apache.org;Apache OpenEJB/a)) and @@ -411,6 +430,14 @@ The resolved bean is a normal CDI bean w pFeatures : Allows a developer to create CDI aware codeConstraintValidator/codes that can use business objects (EJBs, ManagedBeans) to support validation needs./p p* a class=btn href=bean-validation.htmlView details »/a/p +h2 id=servlet-optionalServlet (optional)/h2 +pDefinition : The DeltaSpike Servlet module provides integration with the Java Servlet API./p +pFeatures : /p +ul +liInjection of common servlet objects./li +liPropagation of servlet events to the CDI event bus. /li +/ul +pa class=btn href=servlet.htmlView details »/a/p h1 id=externalExternal/h1 h2 id=blogsBlogs/h2 ul Added: websites/staging/deltaspike/trunk/content/servlet.html == --- websites/staging/deltaspike/trunk/content/servlet.html (added) +++ websites/staging/deltaspike/trunk/content/servlet.html Wed Sep 25 05:03:53 2013 @@ -0,0 +1,334 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - Servlet module/title + + + + +!-- 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 quot;Licensequot;); 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
svn commit: r880844 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Wed Oct 2 10:07:30 2013 New Revision: 880844 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Oct 2 10:07:30 2013 @@ -1 +1 @@ -1526108 +1528404 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Oct 2 10:07:30 2013 @@ -152,14 +152,14 @@ created./p pstrongHint:/strong In the listings below replace the placeholders for the version with the version of your choice or use:/p div class=codehiliteprespan class=ntlt;propertiesgt;/span -span class=ntlt;deltaspike.versiongt;/span0.4span class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.5span class=ntlt;/deltaspike.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div pOr if you want to very bleeding edge, point to our current snapshot./p div class=codehiliteprespan class=ntlt;propertiesgt;/span -span class=ntlt;deltaspike.versiongt;/span0.5-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.6-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div
svn commit: r881142 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Fri Oct 4 13:17:33 2013 New Revision: 881142 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Oct 4 13:17:33 2013 @@ -1 +1 @@ -1528404 +1529156 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Fri Oct 4 13:17:33 2013 @@ -267,8 +267,8 @@ implementation contains the code to mana pstrongHint:/strong In the listings below replace the placeholders for the version with the version of your choice or use:/p div class=codehiliteprespan class=ntlt;propertiesgt;/span -span class=ntlt;deltaspike.versiongt;/spanincubating-0.4-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span -span class=ntlt;owb.versiongt;/span1.1.6span class=ntlt;/owb.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.5span class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;owb.versiongt;/span1.2.0span class=ntlt;/owb.versiongt;/span span class=ntlt;weld.versiongt;/span1.1.9.Finalspan class=ntlt;/weld.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div
svn commit: r884216 - in /websites/staging/deltaspike/trunk/content: ./ migration-guide.html
Author: buildbot Date: Sat Oct 26 13:04:52 2013 New Revision: 884216 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/migration-guide.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Oct 26 13:04:52 2013 @@ -1 +1 @@ -1529156 +1535988 Modified: websites/staging/deltaspike/trunk/content/migration-guide.html == --- websites/staging/deltaspike/trunk/content/migration-guide.html (original) +++ websites/staging/deltaspike/trunk/content/migration-guide.html Sat Oct 26 13:04:52 2013 @@ -82,6 +82,7 @@ ul lia href=#introductionIntroduction/a/li lia href=#apache-myfaces-codi-to-apache-deltaspikeApache MyFaces CODI to Apache DeltaSpike/aul +lia href=#example-overviewExample Overview/a/li lia href=#basically-unchanged-partsBasically unchanged parts/aul lia href=#project-stageProject-stage/a/li lia href=#deactivatable-and-classdeactivatorDeactivatable and ClassDeactivator/a/li @@ -117,6 +118,10 @@ hr / h1 id=introductionIntroduction/h1 h1 id=apache-myfaces-codi-to-apache-deltaspikeApache MyFaces CODI to Apache DeltaSpike/h1 +h2 id=example-overviewExample Overview/h2 +ul +lia href=http://s.apache.org/Ymz;Fullstack CODI to DeltaSpike @ os890/a/li +/ul h2 id=basically-unchanged-partsBasically unchanged parts/h2 pHere you can see features which were added and the concept itself didn't change (only the packages, config keys,...)/p h3 id=project-stageProject-stage/h3 @@ -144,14 +149,9 @@ h3 id=java-15-supportJava 1.5 Support/h3 h2 id=jsf-moduleJSF Module/h2 h3 id=type-safe-view-configType-safe view config/h3 -pChanged names:/p ul -li@View -gt; @ViewRef/li -li@Page -gt; @View/li -li@PageBean -gt; @ViewControllerBean/li -li@PrePageAction -gt; @PreViewAction/li -li@PageParameter -gt; @NavigationParameter/li -liPageParameterContext -gt; NavigationParameterContext/li +liChanged names/li +liAnnotations are optional/li /ul p... ([TODO])/p h1 id=jboss-seam2-to-apache-deltaspikeJBoss Seam2 to Apache DeltaSpike/h1
svn commit: r884376 - in /websites/staging/deltaspike/trunk/content: ./ jpa.html
Author: buildbot Date: Sun Oct 27 19:37:39 2013 New Revision: 884376 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jpa.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Oct 27 19:37:39 2013 @@ -1 +1 @@ -1535989 +1536188 Modified: websites/staging/deltaspike/trunk/content/jpa.html == --- websites/staging/deltaspike/trunk/content/jpa.html (original) +++ websites/staging/deltaspike/trunk/content/jpa.html Sun Oct 27 19:37:39 2013 @@ -102,7 +102,7 @@ If you are using features described by t pThe following example shows a simple producer for an codeEntityManager/code and the corresponding dispose-method. Producing it as request scoped bean means that the dispose method will be called on finishing the request. As an alternative it's possible to use a special scope called code@TransactionScoped/code provided by the same DeltaSpike module./p -pProducer for the default EntityManager:/p +pProducer for the default EntityManager (no EE-Server):/p div class=codehiliteprespan class=c1//.../span span class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span span class=o{/span @@ -128,6 +128,32 @@ As an alternative it's possible to use a /pre/div +pProducer for the default EntityManager (EE-Server):/p +div class=codehiliteprespan class=nd@ApplicationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span +span class=o{/span +span class=nd@PersistenceUnit/span +span class=kdprivate/span span class=nEntityManagerFactory/span span class=nentityManagerFactory/spanspan class=o;/span + +span class=nd@Produces/span +span class=nd@Default/span +span class=nd@RequestScoped/span +span class=kdpublic/span span class=nEntityManager/span span class=nfcreate/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=kthis/spanspan class=o./spanspan class=naentityManagerFactory/spanspan class=o./spanspan class=nacreateEntityManager/spanspan class=o();/span +span class=o}/span + +span class=kdpublic/span span class=ktvoid/span span class=nfdispose/spanspan class=o(/spanspan class=nd@Disposes/span span class=nd@Default/span span class=nEntityManager/span span class=nentityManager/spanspan class=o)/span +span class=o{/span +span class=kif/span span class=o(/spanspan class=nentityManager/spanspan class=o./spanspan class=naisOpen/spanspan class=o())/span +span class=o{/span +span class=nentityManager/spanspan class=o./spanspan class=naclose/spanspan class=o();/span +span class=o}/span +span class=o}/span +span class=o}/span +/pre/div + + pThe following examples show how to use the codeEntityManager/code produced by the example above./p pBeans with transactional method:/p div class=codehiliteprespan class=c1//.../span
svn commit: r884385 - in /websites/staging/deltaspike/trunk/content: ./ examples.html
Author: buildbot Date: Sun Oct 27 21:45:27 2013 New Revision: 884385 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/examples.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Oct 27 21:45:27 2013 @@ -1 +1 @@ -1536188 +1536212 Modified: websites/staging/deltaspike/trunk/content/examples.html == --- websites/staging/deltaspike/trunk/content/examples.html (original) +++ websites/staging/deltaspike/trunk/content/examples.html Sun Oct 27 21:45:27 2013 @@ -94,9 +94,10 @@ (the shown use-cases also work with emWeld/em - only the bootstrapping of the container is different, because this example is based on Java-SE and therefore outside of an Java-EE(6+) application server./p h1 id=externalExternal/h1 ul -lia href=https://github.com/confess/confess2012_deltaspike;confess2012_deltaspike/a/li +lia href=http://s.apache.org/Ymz;Fullstack CODI to DeltaSpike @ os890/a/li lia href=https://github.com/jboss-jdf/jboss-as-quickstart;jboss-as-quickstart (search for emdeltaspike/em)/a/li +lia href=https://github.com/confess/confess2012_deltaspike;confess2012_deltaspike/a/li /ul /div /div
svn commit: r884387 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Sun Oct 27 21:49:33 2013 New Revision: 884387 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Oct 27 21:49:33 2013 @@ -1 +1 @@ -1536212 +1536213 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Sun Oct 27 21:49:33 2013 @@ -396,35 +396,19 @@ The resolved bean is a normal CDI bean w pThe core features of DeltaSpike project are packaged under the following different modules. Some of them are mandatory while others are optional/p h2 id=core-requiredCore (required)/h2 pDefinition : Contain the API and util classes of DeltaSpike project/p -pFeatures :/p -ul -liBeanProvider amp; Manager/li -liProjectStage/li -liConfig amp; Property/li -liMessages amp; I18n/li -liException Handling amp; Control/li -/ul pa class=btn href=core.htmlView details »/a/p h2 id=security-optionalSecurity (optional)/h2 pDefinition : Intercept and check security/p -pFeatures :/p -p*/p pa class=btn href=security.htmlView details »/a/p h2 id=jpa-optionalJPA (optional)/h2 pDefinition :/p -pFeatures :/p -p*/p pa class=btn href=jpa.htmlView details »/a/p h2 id=jsf-optionalJSF (optional)/h2 pDefinition :/p -pFeatures :/p -p*/p pa class=btn href=jsf.htmlView details »/a/p h2 id=container-control-optionalContainer Control (optional)/h2 pDefinition :/p -pFeatures :/p -p* -a class=btn href=container-control.htmlView details »/a/p +pa class=btn href=container-control.htmlView details »/a/p h2 id=bean-validation-optionalBean Validation (optional)/h2 pDefinition : A module for adding CDI support in Bean Validation./p pFeatures : Allows a developer to create CDI aware codeConstraintValidator/codes that can use business objects (EJBs, ManagedBeans) to support validation needs./p
svn commit: r888966 [1/2] - in /websites/staging/deltaspike/trunk/content: ./ data.html
Author: buildbot Date: Tue Dec 3 17:18:42 2013 New Revision: 888966 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/data.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Dec 3 17:18:42 2013 @@ -1 +1 @@ -1538082 +1547483
svn commit: r888982 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Tue Dec 3 18:40:34 2013 New Revision: 888982 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Dec 3 18:40:34 2013 @@ -1 +1 @@ -1547483 +1547516 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Tue Dec 3 18:40:34 2013 @@ -91,6 +91,7 @@ lia href=#jsf-moduleJSF Module/a/li lia href=#bean-validation-moduleBean Validation Module/a/li lia href=#servlet-moduleServlet Module/a/li +lia href=#data-moduleData Module/a/li /ul /li lia href=#with-java-seWith Java SE/aul @@ -119,6 +120,7 @@ lia href=#container-control-optionalContainer Control (optional)/a/li lia href=#bean-validation-optionalBean Validation (optional)/a/li lia href=#servlet-optionalServlet (optional)/a/li +lia href=#data-optionalData (optional)/a/li /ul /li lia href=#externalExternal/aul @@ -260,6 +262,23 @@ In the listings below replace the placeh /pre/div +h4 id=data-moduleData Module/h4 +div class=codehiliteprespan class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-data-module-apispan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spancompilespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span + +span class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-data-module-implspan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spanruntimespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span +/pre/div + + h3 id=with-java-seWith Java SE/h3 pTo use DeltaSpike with Java SE, we must provide additional jars file corresponding to the DeltaSpike CDI Controller API and its implementation. The Controller uses Java Services to resolve the CDI container (a href=http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/;JBoss Weld/a, a href=http://openwebbeans.apache.org;Apache OpenWebbeans/a (and a href=http://openejb.apache.org;Apache OpenEJB/a)) and @@ -422,6 +441,17 @@ The resolved bean is a normal CDI bean w liPropagation of servlet events to the CDI event bus. /li /ul pa class=btn href=servlet.htmlView details »/a/p +h2 id=data-optionalData (optional)/h2 +pDefinition : The DeltaSpike Data module provides enhanced JPA experience with declarative queries, reducing boilerplate to a minimum./p +pFeatures : /p +ul +liDerive queries by simple method names or by method annotations defining JPQL, named queries or plain SQL/li +liResult pagination and sorting/li +liAuditing of entities/li +liA simplified alternative to the Criteria API/li +liMapping of entities from and to DTOs/li +/ul +pa class=btn href=data.htmlView details »/a/p h1 id=externalExternal/h1 h2 id=blogsBlogs/h2 ul
svn commit: r889211 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Thu Dec 5 10:29:54 2013 New Revision: 889211 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Dec 5 10:29:54 2013 @@ -1 +1 @@ -1547516 +1548080 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Thu Dec 5 10:29:54 2013 @@ -92,6 +92,7 @@ lia href=#bean-validation-moduleBean Validation Module/a/li lia href=#servlet-moduleServlet Module/a/li lia href=#data-moduleData Module/a/li +lia href=#test-control-moduleTest-Control Module/a/li /ul /li lia href=#with-java-seWith Java SE/aul @@ -279,6 +280,25 @@ In the listings below replace the placeh /pre/div +h4 id=test-control-moduleTest-Control Module/h4 +div class=codehiliteprespan class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-test-control-module-apispan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spancompilespan class=ntlt;/scopegt;/span +/pre/div + + +p/dependency/p +div class=codehiliteprespan class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-test-control-module-implspan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spanruntimespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span +/pre/div + + h3 id=with-java-seWith Java SE/h3 pTo use DeltaSpike with Java SE, we must provide additional jars file corresponding to the DeltaSpike CDI Controller API and its implementation. The Controller uses Java Services to resolve the CDI container (a href=http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/;JBoss Weld/a, a href=http://openwebbeans.apache.org;Apache OpenWebbeans/a (and a href=http://openejb.apache.org;Apache OpenEJB/a)) and
svn commit: r889217 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Thu Dec 5 10:58:17 2013 New Revision: 889217 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/test-control.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Dec 5 10:58:17 2013 @@ -1 +1 @@ -1548085 +1548086 Added: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (added) +++ websites/staging/deltaspike/trunk/content/test-control.html Thu Dec 5 10:58:17 2013 @@ -0,0 +1,193 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - Test-Control Module/title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=deltaspike.apache.org name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1Test-Control Module/h1 + /div + div class=toc +ul +lia href=#introIntro/a/li +lia href=#cditestrunnerCdiTestRunner/a/li +lia href=#testcontrol@TestControl/a/li +lia href=#cditestsuiterunnerCdiTestSuiteRunner/a/li +lia href=#project-stage-controlProject-Stage Control/a/li +lia href=#hintsHints/a/li +lia href=#spiSPI/a/li +/ul +/div +hr / +h1 id
svn commit: r889224 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Thu Dec 5 12:17:10 2013 New Revision: 889224 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Dec 5 12:17:10 2013 @@ -1 +1 @@ -1548086 +1548107 Modified: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (original) +++ websites/staging/deltaspike/trunk/content/test-control.html Thu Dec 5 12:17:10 2013 @@ -85,6 +85,7 @@ lia href=#testcontrol@TestControl/a/li lia href=#cditestsuiterunnerCdiTestSuiteRunner/a/li lia href=#project-stage-controlProject-Stage Control/a/li +lia href=#optional-configOptional Config/a/li lia href=#hintsHints/a/li lia href=#spiSPI/a/li /ul @@ -154,6 +155,8 @@ /pre/div +h1 id=optional-configOptional Config/h1 +pIt's possible to set testcontrol.stop_container to false (via the std. DeltaSpike config). With that the CDI-Container will be started just once for all tests./p h1 id=hintsHints/h1 pDon't forget to add a beans.xml in the test-module (e.g. src/test/resources/META-INF/beans.xml)./p h1 id=spiSPI/h1
svn commit: r889621 - in /websites/staging/deltaspike/trunk/content: ./ draft/
Author: buildbot Date: Sun Dec 8 20:44:55 2013 New Revision: 889621 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/I18n.html websites/staging/deltaspike/trunk/content/_features.html websites/staging/deltaspike/trunk/content/_modules.html websites/staging/deltaspike/trunk/content/bean-validation.html websites/staging/deltaspike/trunk/content/build.html websites/staging/deltaspike/trunk/content/community.html websites/staging/deltaspike/trunk/content/configuration.html websites/staging/deltaspike/trunk/content/container-control.html websites/staging/deltaspike/trunk/content/contributors.html websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/data.html websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/download.html websites/staging/deltaspike/trunk/content/draft/backlog.html websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html websites/staging/deltaspike/trunk/content/draft/drafts.html websites/staging/deltaspike/trunk/content/draft/exception_draft.html websites/staging/deltaspike/trunk/content/draft/index2.html websites/staging/deltaspike/trunk/content/draft/se-features-ranking.html websites/staging/deltaspike/trunk/content/examples.html websites/staging/deltaspike/trunk/content/exceptions.html websites/staging/deltaspike/trunk/content/index.html websites/staging/deltaspike/trunk/content/jpa.html websites/staging/deltaspike/trunk/content/jsf.html websites/staging/deltaspike/trunk/content/migration-guide.html websites/staging/deltaspike/trunk/content/new-committer.html websites/staging/deltaspike/trunk/content/news.html websites/staging/deltaspike/trunk/content/project-name.html websites/staging/deltaspike/trunk/content/projectstage.html websites/staging/deltaspike/trunk/content/release-preparation.html websites/staging/deltaspike/trunk/content/security.html websites/staging/deltaspike/trunk/content/servlet.html websites/staging/deltaspike/trunk/content/source.html websites/staging/deltaspike/trunk/content/spi.html websites/staging/deltaspike/trunk/content/suggested-git-workflows.html websites/staging/deltaspike/trunk/content/support.html websites/staging/deltaspike/trunk/content/supporters.html websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Dec 8 20:44:55 2013 @@ -1 +1 @@ -1548107 +1549209 Modified: websites/staging/deltaspike/trunk/content/I18n.html == --- websites/staging/deltaspike/trunk/content/I18n.html (original) +++ websites/staging/deltaspike/trunk/content/I18n.html Sun Dec 8 20:44:55 2013 @@ -202,7 +202,7 @@ In case of a message-key, the message-re hr footer -pCopyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p +pCopyright © 2011-2013 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer Modified: websites/staging/deltaspike/trunk/content/_features.html == --- websites/staging/deltaspike/trunk/content/_features.html (original) +++ websites/staging/deltaspike/trunk/content/_features.html Sun Dec 8 20:44:55 2013 @@ -159,7 +159,7 @@ hr footer -pCopyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p +pCopyright © 2011-2013 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer Modified: websites/staging/deltaspike/trunk/content/_modules.html == --- websites/staging/deltaspike/trunk/content/_modules.html (original) +++ websites/staging/deltaspike/trunk/content/_modules.html Sun Dec 8 20:44:55 2013 @@ -554,7 +554,7 @@ So it's possible to catch an exception i hr footer -pCopyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p +pCopyright © 2011-2013 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer Modified
svn commit: r890485 - in /websites/staging/deltaspike/trunk/content: ./ core.html
Author: buildbot Date: Mon Dec 16 02:00:46 2013 New Revision: 890485 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/core.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Dec 16 02:00:46 2013 @@ -1 +1 @@ -1551046 +1551104 Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Mon Dec 16 02:00:46 2013 @@ -102,6 +102,7 @@ /li /ul /li +lia href=#external-resource-loadingExternal Resource Loading/a/li lia href=#exception-controlException Control/a/li lia href=#exception-handling-usageException Handling - Usage/aul lia href=#eventing-into-the-exception-handling-frameworkEventing into the exception handling framework/a/li @@ -412,6 +413,15 @@ In case of a message-key, the message-re pA locale resolver provides the current locale. The locale is e.g. used to by a codeMessageResolver/code to choose the correct language for the message-text./p pstrongConfiguration of a locale-resolver/strong/p p[TODO]/p +h2 id=external-resource-loadingExternal Resource Loading/h2 +pDeltaSpike has simple APIs for performing basic resource loading and property file reading./p +div class=codehiliteprespan class=nd@Inject/span +span class=nd@ExternalResource/spanspan class=o(/spanspan class=squot;myfile.propertiesquot;/spanspan class=o)/span +span class=kdprivate/span span class=nInputStream/span span class=ninputStream/spanspan class=o;/span +/pre/div + + +pThis can be used to read files, from classpath or on your local file system, using two default implementations: codeClasspathResourceProvider/code and codeFileResourceProvider/code. They can be extended as well by implementing the codeExternalResourceProvider/code interface to allow reading from alternate sources, if needed (e.g. database LOBs, NoSQL storage areas)./p h2 id=exception-controlException Control/h2 pException handling in DeltaSpike is based around the CDI eventing model. While the implementation of exception handlers may not be the same as a CDI event,
svn commit: r891749 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Wed Dec 25 15:23:43 2013 New Revision: 891749 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Dec 25 15:23:43 2013 @@ -1 +1 @@ -1551336 +1553389 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Dec 25 15:23:43 2013 @@ -93,6 +93,7 @@ lia href=#servlet-moduleServlet Module/a/li lia href=#data-moduleData Module/a/li lia href=#test-control-moduleTest-Control Module/a/li +lia href=#scheduler-moduleScheduler Module/a/li /ul /li lia href=#with-java-seWith Java SE/aul @@ -123,6 +124,7 @@ lia href=#servlet-optionalServlet (optional)/a/li lia href=#data-optionalData (optional)/a/li lia href=#test-control-optionalTest-Control (optional)/a/li +lia href=#scheduler-optionalScheduler (optional)/a/li /ul /li lia href=#externalExternal/aul @@ -298,6 +300,23 @@ In the listings below replace the placeh /pre/div +h4 id=scheduler-moduleScheduler Module/h4 +div class=codehiliteprespan class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-scheduler-module-apispan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spancompilespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span + +span class=ntlt;dependencygt;/span +span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span +span class=ntlt;artifactIdgt;/spandeltaspike-scheduler-module-implspan class=ntlt;/artifactIdgt;/span +span class=ntlt;versiongt;/spanspan class=cp${/spanspan class=ndeltaspike/spanspan class=o./spanspan class=nversion/spanspan class=cp}/spanspan class=ntlt;/versiongt;/span +span class=ntlt;scopegt;/spancompilespan class=ntlt;/scopegt;/span +span class=ntlt;/dependencygt;/span +/pre/div + + h3 id=with-java-seWith Java SE/h3 pTo use DeltaSpike with Java SE, we must provide additional jars file corresponding to the DeltaSpike CDI Controller API and its implementation. The Controller uses Java Services to resolve the CDI container (a href=http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/;JBoss Weld/a, a href=http://openwebbeans.apache.org;Apache OpenWebbeans/a (and a href=http://openejb.apache.org;Apache OpenEJB/a)) and @@ -474,6 +493,9 @@ The resolved bean is a normal CDI bean w h2 id=test-control-optionalTest-Control (optional)/h2 pDefinition : This module allows to write CDI based tests easily./p pa class=btn href=test-control.htmlView details »/a/p +h2 id=scheduler-optionalScheduler (optional)/h2 +pDefinition : This module provides a simple integration with quartz (per default) or any other scheduler which supports cron-expressions for job-classes./p +pa class=btn href=scheduler.htmlView details »/a/p h1 id=externalExternal/h1 h2 id=blogsBlogs/h2 ul
svn commit: r891750 - in /websites/staging/deltaspike/trunk/content: ./ scheduler.html
Author: buildbot Date: Wed Dec 25 15:25:48 2013 New Revision: 891750 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/scheduler.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Dec 25 15:25:48 2013 @@ -1 +1 @@ -1553389 +1553390 Added: websites/staging/deltaspike/trunk/content/scheduler.html == --- websites/staging/deltaspike/trunk/content/scheduler.html (added) +++ websites/staging/deltaspike/trunk/content/scheduler.html Wed Dec 25 15:25:48 2013 @@ -0,0 +1,120 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - Scheduler Module/title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=deltaspike.apache.org name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1Scheduler Module/h1 + /div + div class=toc +ul +lia href=#introIntro/a/li +/ul +/div +hr / +h1 id=introIntro/h1 + /div + /div + + hr + + footer +pCopyright © 2011-2013 The Apache Software Foundation, Licensed under the Apache License, Version 2.0./p +pApache and the Apache feather logo are trademarks of The Apache
svn commit: r891754 - in /websites/staging/deltaspike/trunk/content: ./ scheduler.html
Author: buildbot Date: Wed Dec 25 15:52:15 2013 New Revision: 891754 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/scheduler.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Dec 25 15:52:15 2013 @@ -1 +1 @@ -1553391 +1553392 Modified: websites/staging/deltaspike/trunk/content/scheduler.html == --- websites/staging/deltaspike/trunk/content/scheduler.html (original) +++ websites/staging/deltaspike/trunk/content/scheduler.html Wed Dec 25 15:52:15 2013 @@ -81,10 +81,79 @@ div class=toc ul lia href=#introIntro/a/li +lia href=#scheduled@Scheduled/a/li +lia href=#schedulerScheduler/a/li +lia href=#custom-schedulerCustom Scheduler/a/li /ul /div hr / h1 id=introIntro/h1 +pThis module provides a simple integration with Quartz v2 (per default) or any other scheduler which supports cron-expressions for job-classes./p +h1 id=scheduled@Scheduled/h1 +pJust annotate your Quartz-Jobs with code@Scheduled/code and they will get picked up and passed to the scheduler automatically (during the bootstrapping process)./p +div class=codehiliteprespan class=nd@Scheduled/spanspan class=o(/spanspan class=ncronExpression/span span class=o=/span span class=squot;0 0/10 * * * ?quot;/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncCdiAwareQuartzJob/span span class=kdimplements/span span class=norg/spanspan class=o./spanspan class=naquartz/spanspan class=o./spanspan class=naJob/span +span class=o{/span +span class=nd@Inject/span +span class=kdprivate/span span class=nMyService/span span class=nservice/spanspan class=o;/span + +span class=nd@Override/span +span class=kdpublic/span span class=ktvoid/span span class=nfexecute/spanspan class=o(/spanspan class=nJobExecutionContext/span span class=ncontext/spanspan class=o)/span span class=kdthrows/span span class=nJobExecutionException/span +span class=o{/span +span class=c1//.../span +span class=o}/span +span class=o}/span +/pre/div + + +pIn such Quartz-jobs CDI based dependency-injection is enabled. Furthermore, the request- and session-scope get started (and stopped) per job-execution. Therefore, the container-control module (of DeltaSpike) is required. +That can be controlled via code@Scheduled#startScopes/code (possible values: all scopes supported by the container-control module as well as code{}/code for 'no scopes')./p +pWith 'false' for code@Scheduled#onStartup/code it's even possible to schedule/install jobs dynamically - e.g.:/p +div class=codehiliteprespan class=nd@ApplicationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncProjectStageAwareSchedulerController/span +span class=o{/span +span class=nd@Inject/span +span class=kdprivate/span span class=nScheduler/spanspan class=olt;/spanspan class=nJob/spanspan class=ogt;/span span class=njobScheduler/spanspan class=o;/span + +span class=nd@Inject/span +span class=kdprivate/span span class=nProjectStage/span span class=nprojectStage/spanspan class=o;/span + +span class=kdpublic/span span class=ktvoid/span span class=nfregisterJobs/spanspan class=o()/span +span class=o{/span +span class=kif/span span class=o(/spanspan class=nProjectStage/spanspan class=o./spanspan class=naProduction/spanspan class=o./spanspan class=naequals/spanspan class=o(/spanspan class=kthis/spanspan class=o./spanspan class=naprojectStage/spanspan class=o))/span +span class=o{/span +span class=c1//see #39;false#39; for @Scheduled#onStartup/span +span class=kthis/spanspan class=o./spanspan class=najobScheduler/spanspan class=o./spanspan class=nascheduleJob/spanspan class=o(/spanspan class=nManualCdiAwareQuartzJob/spanspan class=o./spanspan class=naclass/spanspan class=o);/span +span class=o}/span +span class=o}/span + +span class=nd@Scheduled/spanspan class=o(/spanspan class=ncronExpression/span span class=o=/span span class=squot;0 0/10 * * * ?quot;/spanspan class=o,/span span class=nonStartup/span span class=o=/span span class=kcfalse/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncManualCdiAwareQuartzJob/span span class=kdimplements/span span class=norg/spanspan class=o./spanspan class=naquartz/spanspan class=o./spanspan class=naJob/span +span class=o{/span +span class=nd@Inject/span +span class=kdprivate/span span class=nMyService/span span class=nservice/spanspan class=o;/span + +span class=nd@Override/span +span class=kdpublic/span span class=ktvoid/span span class=nfexecute/spanspan class=o
svn commit: r891756 - in /websites/staging/deltaspike/trunk/content: ./ scheduler.html
Author: buildbot Date: Wed Dec 25 15:54:09 2013 New Revision: 891756 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/scheduler.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Dec 25 15:54:09 2013 @@ -1 +1 @@ -1553392 +1553393 Modified: websites/staging/deltaspike/trunk/content/scheduler.html == --- websites/staging/deltaspike/trunk/content/scheduler.html (original) +++ websites/staging/deltaspike/trunk/content/scheduler.html Wed Dec 25 15:54:09 2013 @@ -82,7 +82,7 @@ ul lia href=#introIntro/a/li lia href=#scheduled@Scheduled/a/li -lia href=#schedulerScheduler/a/li +lia href=#manual-scheduler-controlManual Scheduler Control/a/li lia href=#custom-schedulerCustom Scheduler/a/li /ul /div @@ -143,7 +143,7 @@ That can be controlled via code@Schedu /pre/div -h1 id=schedulerScheduler/h1 +h1 id=manual-scheduler-controlManual Scheduler Control/h1 pThis SPI allows to control the scheduler (or integrate any other compatible scheduler as an alternative to Quartz2)/p pVia std. injection like/p div class=codehiliteprespan class=nd@Inject/span
svn commit: r891757 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Wed Dec 25 15:57:39 2013 New Revision: 891757 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Dec 25 15:57:39 2013 @@ -1 +1 @@ -1553393 +1553394 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Dec 25 15:57:39 2013 @@ -494,7 +494,7 @@ The resolved bean is a normal CDI bean w pDefinition : This module allows to write CDI based tests easily./p pa class=btn href=test-control.htmlView details »/a/p h2 id=scheduler-optionalScheduler (optional)/h2 -pDefinition : This module provides a simple integration with quartz (per default) or any other scheduler which supports cron-expressions for job-classes./p +pDefinition : This module provides a simple integration with Quartz v2 (per default) or any other scheduler which supports cron-expressions for job-classes./p pa class=btn href=scheduler.htmlView details »/a/p h1 id=externalExternal/h1 h2 id=blogsBlogs/h2
svn commit: r891846 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Dec 26 16:53:06 2013 New Revision: 891846 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Dec 26 16:53:06 2013 @@ -1 +1 @@ -1553508 +1553510 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Dec 26 16:53:06 2013 @@ -107,9 +107,9 @@ lia href=#creating-custom-meta-data-via-viewmetadataCreating Custom Meta-Data via @ViewMetaData/a/li lia href=#creating-custom-callbacks-via-viewmetadataCreating Custom Callbacks via @ViewMetaData/a/li lia href=#creating-custom-inline-meta-data-via-inlineviewmetadataCreating Custom inline Meta-Data via @InlineViewMetaData/a/li -lia href=#path-validationPath-Validation/a/li /ul /li +lia href=#path-validationPath-Validation/a/li lia href=#view-config-spiView-Config SPI/aul lia href=#configdescriptorvalidatorConfigDescriptorValidator/a/li lia href=#confignodeconverterConfigNodeConverter/a/li @@ -750,7 +750,7 @@ The following listing shows a view-confi h3 id=creating-custom-inline-meta-data-via-inlineviewmetadataCreating Custom inline Meta-Data via @InlineViewMetaData/h3 pThis annotation can be used for view-meta-data which can be placed on other classes than view-config-classes. It's used e.g. for code@ViewRef/code. Via a codeTargetViewConfigProvider/code it's possible to point to the view-config the meta-data should get applied to and via codeInlineMetaDataTransformer/code it's possible to convert it to a different meta-data-representation (which allows that at runtime you only have to support one side since the inline-meta-data was converted to the same meta-data representation which is used for the normal view-meta-data)./p -h3 id=path-validationPath-Validation/h3 +h2 id=path-validationPath-Validation/h2 pDeltaSpike (after v0.5) validates your configs out-of-the-box. The application will fail to start, if there is an invalid config (e.g. a view-config without a corresponding view). Right now the validation is restricted to folders and view-ids with .xhtml or .jsp as suffix. Other view-ids (e.g. *.faces) don't get checked. In such cases a custom validator can be used (e.g. based on codeViewConfigPathValidator/code)./p pTo disable the view-config (path) validation, add a codeClassDeactivator/code which restricts codeorg.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator/code./p
svn commit: r892907 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Jan 5 22:21:19 2014 New Revision: 892907 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Jan 5 22:21:19 2014 @@ -1 +1 @@ -1553510 +1555640 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Jan 5 22:21:19 2014 @@ -124,6 +124,10 @@ lia href=#activation-of-custom-naming-conventionsActivation of custom naming conventions/a/li /ul /li +lia href=#grouped-conversations(Grouped-)Conversations/aul +lia href=#terminating-conversationsTerminating Conversations/a/li +/ul +/li lia href=#support-of-ear-deploymentsSupport of EAR deployments/a/li lia href=#hintsHints/a/li /ul @@ -784,6 +788,207 @@ Only annotate one codeViewConfig/code pDeltaSpike allows to customize the default naming convention via codeView.DefaultBasePathBuilder/code and/or codeView.DefaultFileNameBuilder/code and/or codeView.DefaultExtensionBuilder/code. It's possible to change it for one usage via codeView.basePathBuilder/code and/or codeView.fileNameBuilder/code and/or codeView.extensionBuilder/code or globally via the config mechanism provided by DeltaSpike. The same is supported for folders via codeFolder.DefaultFolderNameBuilder/code. In this case changing only one usage is possible via codeFolder.folderNameBuilder/code./p +h1 id=grouped-conversations(Grouped-)Conversations/h1 +pAvailable with all versions after 0.5./p +pDeltaSpike conversations are based on the window-scope. Therefore, don't forget to add the codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) component in case of ClientWindowConfig#CLIENTWINDOW to your page(/template) and ensure that the window-handling works properly (otherwise conversations won't work correctly). +The base principle is similar to CODI-Conversations. CODI users just have to ensure that they have to add codeds:windowId/code and the names are slightly different./p +pFirst of all it's important to mention that DeltaSpike starts (grouped) conversations automatically as soon as you access conversation scoped beans. Furthermore, the invocation of GroupedConversation#close leads to an immediate termination of the conversation./p +div class=codehiliteprespan class=nd@GroupedConversationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncDemoBean1/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o}/span +/pre/div + + +p... leads to a conversation which contains just one bean with the group DemoBean1./p +pHint: +If you would like to use the bean within your JSF pages, you have to add code@Named/code (javax.inject.Named )./p +p(In case of CDI std. conversations there is just one big conversation which contains all conversation scoped beans.) +The grouped conversations provided by DeltaSpike are completely different. By default every conversation scoped bean exists in an isolated conversation. That means there are several parallel conversations within the same window./p +pExample - Separated DeltaSpike conversations:/p +div class=codehiliteprespan class=nd@GroupedConversationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncDemoBean2/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o}/span + +span class=nd@GroupedConversationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncDemoBean3/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o}/span +/pre/div + + +p... leads to two independent conversations in the same window (context). +If you close the conversation of DemoBean2, the conversation of DemoBean3 is still active. +If you have an use-case (e.g. a wizard) which uses multiple beans which are linked together very tightly, you can create a type-safe conversation group./p +pExample - Grouped conversation scoped beans:/p +div class=codehiliteprespan class=kdinterface/span span class=ncWizard1/span span class=o{}/span + +span class=nd@GroupedConversationScoped/span +span class=nd@ConversationGroup/spanspan class=o(/spanspan class=nWizard1/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncDemoBean4/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o
svn commit: r892908 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Jan 5 22:22:42 2014 New Revision: 892908 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Jan 5 22:22:42 2014 @@ -1 +1 @@ -1555640 +1555641 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Jan 5 22:22:42 2014 @@ -790,9 +790,9 @@ It's possible to change it for one usage The same is supported for folders via codeFolder.DefaultFolderNameBuilder/code. In this case changing only one usage is possible via codeFolder.folderNameBuilder/code./p h1 id=grouped-conversations(Grouped-)Conversations/h1 pAvailable with all versions after 0.5./p -pDeltaSpike conversations are based on the window-scope. Therefore, don't forget to add the codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) component in case of ClientWindowConfig#CLIENTWINDOW to your page(/template) and ensure that the window-handling works properly (otherwise conversations won't work correctly). +pDeltaSpike conversations are based on the window-scope. Therefore, don't forget to add the codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) component in case of codeClientWindowConfig#CLIENTWINDOW/code to your page(/template) and ensure that the window-handling works properly (otherwise conversations won't work correctly). The base principle is similar to CODI-Conversations. CODI users just have to ensure that they have to add codeds:windowId/code and the names are slightly different./p -pFirst of all it's important to mention that DeltaSpike starts (grouped) conversations automatically as soon as you access conversation scoped beans. Furthermore, the invocation of GroupedConversation#close leads to an immediate termination of the conversation./p +pFirst of all it's important to mention that DeltaSpike starts (grouped) conversations automatically as soon as you access conversation scoped beans. Furthermore, the invocation of codeGroupedConversation#close/code leads to an immediate termination of the conversation./p div class=codehiliteprespan class=nd@GroupedConversationScoped/span span class=kdpublic/span span class=kdclass/span span class=ncDemoBean1/span span class=kdimplements/span span class=nSerializable/span span class=o{/span
svn commit: r892909 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Jan 5 22:26:00 2014 New Revision: 892909 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Jan 5 22:26:00 2014 @@ -1 +1 @@ -1555641 +1555642 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Jan 5 22:26:00 2014 @@ -988,7 +988,7 @@ If you have an use-case (e.g. a wizard) pHint: -DeltaSpike conversations get closed/restarted immediately instead of keeping them until the end of the request like std. conversations do, because the behaviour of std. conversations breaks a lot of use-cases. However, if you really need to keep them until the end of the request, you can close them in a @PostRenderView callback./p +DeltaSpike conversations get closed/restarted immediately instead of keeping them until the end of the request like std. conversations do, because the behaviour of std. conversations breaks a lot of use-cases. However, if you really need to keep them until the end of the request, you can close them in a code@PostRenderView/code callback./p h1 id=support-of-ear-deploymentsSupport of EAR deployments/h1 pBefore using features described by this page, please ensure that you are aware of a href=https://issues.apache.org/jira/browse/DELTASPIKE-335;DELTASPIKE-335/a and the corresponding impact./p h1 id=hintsHints/h1
svn commit: r892998 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Mon Jan 6 14:48:38 2014 New Revision: 892998 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Jan 6 14:48:38 2014 @@ -1 +1 @@ -1555642 +1555830 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Mon Jan 6 14:48:38 2014 @@ -126,6 +126,7 @@ /li lia href=#grouped-conversations(Grouped-)Conversations/aul lia href=#terminating-conversationsTerminating Conversations/a/li +lia href=#sub-conversation-groupsSub-Conversation-Groups/a/li /ul /li lia href=#support-of-ear-deploymentsSupport of EAR deployments/a/li @@ -989,6 +990,65 @@ If you have an use-case (e.g. a wizard) pHint: DeltaSpike conversations get closed/restarted immediately instead of keeping them until the end of the request like std. conversations do, because the behaviour of std. conversations breaks a lot of use-cases. However, if you really need to keep them until the end of the request, you can close them in a code@PostRenderView/code callback./p +h2 id=sub-conversation-groupsSub-Conversation-Groups/h2 +pDue to the parallel conversation concept of DeltaSpike there is no need of something like nested conversations. Just use them in parallel and terminate them in a fine-granular way as soon as you don't need them any longer. As described above, you can terminate a whole conversation-group. However, sometimes it's essential to have subgroups if you need to end just a part of an use-case instead of all beans related to an use-case. +A sub-group is just a class or an interface used to identify a bunch of beans within a group. To terminate such a sub-group, it's just needed to pass the class/interface to the corresponding API for terminating a conversation. The sub-group gets detected autom. and instead of terminating a whole conversation-group, the beans of the sub-group get un-scoped./p +pExample - Explicitly listing beans of a sub-group:/p +div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncMyGroup/spanspan class=o{}/span + +span class=nd@GroupedConversationScoped/span +span class=nd@ConversationGroup/spanspan class=o(/spanspan class=nMyGroup/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncBeanA/span span class=o{}/span + +span class=nd@GroupedConversationScoped/span +span class=nd@ConversationGroup/spanspan class=o(/spanspan class=nMyGroup/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncBeanB/span span class=o{}/span + +span class=nd@GroupedConversationScoped/span +span class=nd@ConversationGroup/spanspan class=o(/spanspan class=nMyGroup/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncBeanC/span span class=o{}/span + +span class=nd@ConversationSubGroup/spanspan class=o(/spanspan class=nsubGroup/span span class=o=/span span class=o{/spanspan class=nBeanA/spanspan class=o./spanspan class=naclass/spanspan class=o,/span span class=nBeanB/spanspan class=o./spanspan class=naclass/spanspan class=o})/span +span class=kdpublic/span span class=kdclass/span span class=ncMySubGroup/span span class=kdextends/span span class=nMyGroup/span span class=o{}/span + +span class=c1//or/span + +span class=nd@ConversationSubGroup/spanspan class=o(/spanspan class=nof/span span class=o=/span span class=nMyGroup/spanspan class=o./spanspan class=naclass/spanspan class=o,/span span class=nsubGroup/span span class=o=/span span class=o{/spanspan class=nBeanA/spanspan class=o./spanspan class=naclass/spanspan class=o,/span span class=nBeanB/spanspan class=o./spanspan class=naclass/spanspan class=o})/span +span class=kdpublic/span span class=kdclass/span span class=ncMySubGroup/span span class=o{}/span +/pre/div + + +pExample - Terminating a sub-group:/p +div class=codehiliteprespan class=nd@Inject/span +span class=kdprivate/span span class=nGroupedConversationManager/span span class=nconversationManager/spanspan class=o;/span + +span class=c1//.../span +span class=kthis/spanspan class=o./spanspan class=naconversationManager/spanspan class=o./spanspan class=nacloseConversationGroup/spanspan class=o(/spanspan class=nMySubGroup/spanspan class=o./spanspan class=naclass/spanspan class=o);/span +/pre/div + + +pAs you see the class/interface of the sub-group has to extend/implement the group or you specify it via
svn commit: r892999 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Mon Jan 6 14:51:41 2014 New Revision: 892999 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Jan 6 14:51:41 2014 @@ -1 +1 @@ -1555830 +1555833 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Mon Jan 6 14:51:41 2014 @@ -1027,7 +1027,7 @@ A sub-group is just a class or an interf /pre/div -pAs you see the class/interface of the sub-group has to extend/implement the group or you specify it via the @ConversationSubGroup#of. With @ConversationSubGroup#subGroup you can list all beans which belong to the sub-group. If you have a lot of such beans or you would like to form (sub-)use-case oriented groups, you can use implicit groups:/p +pAs you see the class/interface of the sub-group has to extend/implement the group or you specify it via the code@ConversationSubGroup#of/code. With code@ConversationSubGroup#subGroup/code you can list all beans which belong to the sub-group. If you have a lot of such beans or you would like to form (sub-)use-case oriented groups, you can use implicit groups:/p pExample - Implicit sub-group:/p div class=codehiliteprespan class=kdpublic/span span class=kdinterface/span span class=ncWizard/span span class=o{}/span
svn commit: r896495 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Wed Feb 5 09:59:11 2014 New Revision: 896495 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Feb 5 09:59:11 2014 @@ -1 +1 @@ -1556792 +1564693 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Feb 5 09:59:11 2014 @@ -107,6 +107,7 @@ /li /ul /li +lia href=#testing-snapshotsTesting Snapshots/a/li lia href=#deployment-modeDeployment mode/aul lia href=#with-java-ee6With Java EE6+/a/li lia href=#with-java-ee5-or-servlet-containersWith Java EE5 or Servlet Containers/a/li @@ -383,6 +384,23 @@ In the listings below replace the placeh /pre/div +h1 id=testing-snapshotsTesting Snapshots/h1 +pIf you would like to test the latest Snapshot, you can a href=buildhttp://deltaspike.apache.org/build.html/a DeltaSpike locally or you get it from the Apache Snapshot-Repository:/p +div class=codehiliteprespan class=ntlt;repositoriesgt;/span +span class=ntlt;repositorygt;/span +span class=ntlt;idgt;/spanapache-snapshot-repositoryspan class=ntlt;/idgt;/span +span class=ntlt;urlgt;/spanhttp://repository.apache.org/snapshots/span class=ntlt;/urlgt;/span +span class=ntlt;releasesgt;/span +span class=ntlt;enabledgt;/spanfalsespan class=ntlt;/enabledgt;/span +span class=ntlt;/releasesgt;/span +span class=ntlt;snapshotsgt;/span +span class=ntlt;enabledgt;/spantruespan class=ntlt;/enabledgt;/span +span class=ntlt;/snapshotsgt;/span +span class=ntlt;/repositorygt;/span +span class=ntlt;/repositoriesgt;/span +/pre/div + + h1 id=deployment-modeDeployment mode/h1 pDeltaSpike can be deployed in different Java environments. Depending which Java container and release you are using, the procedure which is different is explained here after./p
svn commit: r896496 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Wed Feb 5 10:11:23 2014 New Revision: 896496 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Feb 5 10:11:23 2014 @@ -1 +1 @@ -1564693 +1564696 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Wed Feb 5 10:11:23 2014 @@ -103,11 +103,11 @@ /li lia href=#for-apache-openwebbeans... for Apache OpenWebBeans/a/li lia href=#for-jboss-weld-ri... for JBoss Weld (RI)/a/li +lia href=#testing-snapshotsTesting Snapshots/a/li /ul /li /ul /li -lia href=#testing-snapshotsTesting Snapshots/a/li lia href=#deployment-modeDeployment mode/aul lia href=#with-java-ee6With Java EE6+/a/li lia href=#with-java-ee5-or-servlet-containersWith Java EE5 or Servlet Containers/a/li @@ -384,8 +384,8 @@ In the listings below replace the placeh /pre/div -h1 id=testing-snapshotsTesting Snapshots/h1 -pIf you would like to test the latest Snapshot, you can a href=buildhttp://deltaspike.apache.org/build.html/a DeltaSpike locally or you get it from the Apache Snapshot-Repository:/p +h3 id=testing-snapshotsTesting Snapshots/h3 +pIf you would like to test the latest Snapshot, you can a href=http://deltaspike.apache.org/build.html;build/a DeltaSpike locally or you get it from the Apache Snapshot-Repository:/p div class=codehiliteprespan class=ntlt;repositoriesgt;/span span class=ntlt;repositorygt;/span span class=ntlt;idgt;/spanapache-snapshot-repositoryspan class=ntlt;/idgt;/span
svn commit: r896759 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Fri Feb 7 16:21:08 2014 New Revision: 896759 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Feb 7 16:21:08 2014 @@ -1 +1 @@ -1565437 +1565712 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Fri Feb 7 16:21:08 2014 @@ -80,11 +80,23 @@ /div div class=toc ul -lia href=#multi-window-handlingMulti-Window Handling/aul +lia href=#multi-window-handling-todoMulti-Window Handling (TODO)/aul lia href=#introIntro/a/li lia href=#available-modesAvailable modes/aul -lia href=#clientwindowCLIENTWINDOW/a/li -lia href=#lazyLAZY/a/li +lia href=#clientwindowCLIENTWINDOW/aul +lia href=#change-windowhandlerhtmlChange windowhandler.html/a/li +/ul +/li +lia href=#lazyLAZY/aul +lia href=#examplesExamples/aul +lia href=#first-get-request-with-windowidFirst GET request with windowID/a/li +lia href=#first-get-request-without-windowidFirst GET request without windowID/a/li +lia href=#further-get-request-with-windowidFurther GET request with windowID/a/li +lia href=#further-get-request-without-windowidFurther GET request without windowID/a/li +/ul +/li +/ul +/li lia href=#noneNONE/a/li lia href=#delegatedDELEGATED/a/li lia href=#customCUSTOM/a/li @@ -153,21 +165,58 @@ /ul /div hr / -h1 id=multi-window-handlingMulti-Window Handling/h1 +h1 id=multi-window-handling-todoMulti-Window Handling (TODO)/h1 h2 id=introIntro/h2 h2 id=available-modesAvailable modes/h2 h3 id=clientwindowCLIENTWINDOW/h3 +pEach GET request results in an intermediate small html page which checks if the browser tab fits the requested windowId./p +pTODO/p +h4 id=change-windowhandlerhtmlChange windowhandler.html/h4 h3 id=lazyLAZY/h3 +pAlways appends the windowId to all, from JSF generated, URLs.br/ +On the first GET request without a windowId, it will generate a new windowId and redirect, with the windowId in the URL, to the same view again.br/ +The current windowId will be stored in the codewindow.name/code variable on the client side. br/ +For all further requests, a lazy check will be performed to check if the windowID in the URL is matching with the codewindow.name./code +If it's not matching, the view will be refreshed with the right windowId in the URL./p +h4 id=examplesExamples/h4 +h5 id=first-get-request-with-windowidFirst GET request with windowID/h5 +ul +liRenders the view/li +liStores the windowId as codewindow.name/code on the client side/li +/ul +h5 id=first-get-request-without-windowidFirst GET request without windowID/h5 +ul +liRedirect to the same view with a new windowId in the URL/li +liRenders the view/li +liStores the windowId as codewindow.name/code on the client side/li +/ul +h5 id=further-get-request-with-windowidFurther GET request with windowID/h5 +ul +liRenders the view/li +liChecks if the requested windowID matches the codewindow.name/code/li +liIf it does not match, reload the URL with the right windowId taken from codewindow.name/code/li +/ul +h5 id=further-get-request-without-windowidFurther GET request without windowID/h5 +ul +liRedirect to the same view with a new windowId in the URL/li +liRenders the view/li +liIf it does not match, reload the URL with the right windowId taken from codewindow.name/code/li +/ul +pTODO: Contra/p h3 id=noneNONE/h3 +pAny window or browser tab detection will be disabled for the current request.br/ +Scopes like @WindowScoped, @GroupedConversationScoped or @ViewAccessScoped will not work./p h3 id=delegatedDELEGATED/h3 +pDelegates the complete window handling to thew new JSF 2.2 ClientWindow (if not disabled)./p h3 id=customCUSTOM/h3 +pEnables to use an complete own codeorg.apache.deltaspike.jsf.spi.scope.window.ClientWindow/code implementation./p h2 id=configurationConfiguration/h2 h3 id=dswindowidds:windowId/h3 -pThe component codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) is required to enable the full control of the DeltaSpike window handling. -It will import and render the required script parts for both codeLAZY/code and codeCLIENTWINDOW/code mode. +pThe component codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) is required to enable the full control of the DeltaSpike window handling.br/ +It will import and render the required script parts for both codeLAZY/code and codeCLIENTWINDOW/code mode.br/ The best way, to apply it for all views, is to add this component to all of your templates./p h3 id=switch-modeSwitch Mode/h3
svn commit: r897181 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Mon Feb 10 16:23:28 2014 New Revision: 897181 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Feb 10 16:23:28 2014 @@ -1 +1 @@ -150 +1566675 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Mon Feb 10 16:23:28 2014 @@ -91,10 +91,10 @@ /li lia href=#lazyLAZY/aul lia href=#examplesExamples/aul -lia href=#first-get-request-with-windowidFirst GET request with windowID/a/li -lia href=#first-get-request-without-windowidFirst GET request without windowID/a/li -lia href=#further-get-request-with-windowidFurther GET request with windowID/a/li -lia href=#further-get-request-without-windowidFurther GET request without windowID/a/li +lia href=#first-get-request-with-windowidFirst GET request with windowId/a/li +lia href=#first-get-request-without-windowidFirst GET request without windowId/a/li +lia href=#further-get-request-with-windowidFurther GET request with windowId/a/li +lia href=#further-get-request-without-windowidFurther GET request without windowId/a/li /ul /li /ul @@ -171,12 +171,14 @@ h2 id=introIntro/h2 h2 id=available-modesAvailable modes/h2 h3 id=clientwindowCLIENTWINDOW/h3 -pEach GET request results in an intermediate small html page which checks if the browser tab fits the requested windowId./p -h4 id=advantageAdvantage/h4 +pEach GET request results in an intermediate small html page which checks if the browser tab fits the requested windowId. br/ +When the windowId is valid, a unique token (called codedsRid/code) for the current request will be generated and added to the URL. br/ +In addition a cookie with with the dsRid/windowId will be added. On the server side, the verified windowId will be takes from the cookie./p +h5 id=advantageAdvantage/h5 ul liCovers all edge cases/li /ul -h4 id=disadvantageDisadvantage/h4 +h5 id=disadvantageDisadvantage/h5 ul liEvery GET requests streams the the windowhandler.html first -gt; The application probably feels a litte bit slower/li @@ -200,27 +202,27 @@ pAlways appends the windowId to all, from JSF generated, URLs.br/ On the first GET request without a windowId, it will generate a new windowId and redirect, with the windowId in the URL, to the same view again.br/ The current windowId will be stored in the codewindow.name/code variable on the client side. br/ -For all further requests, a lazy check will be performed to check if the windowID in the URL is matching with the codewindow.name/code. +For all further requests, a lazy check will be performed to check if the windowId in the URL is matching with the codewindow.name/code. If it's not matching, the view will be refreshed with the right windowId in the URL./p h4 id=examplesExamples/h4 -h5 id=first-get-request-with-windowidFirst GET request with windowID/h5 +h5 id=first-get-request-with-windowidFirst GET request with windowId/h5 ul liRenders the view/li liStores the windowId as codewindow.name/code on the client side/li /ul -h5 id=first-get-request-without-windowidFirst GET request without windowID/h5 +h5 id=first-get-request-without-windowidFirst GET request without windowId/h5 ul liRedirect to the same view with a new windowId in the URL/li liRenders the view/li liStores the windowId as codewindow.name/code on the client side/li /ul -h5 id=further-get-request-with-windowidFurther GET request with windowID/h5 +h5 id=further-get-request-with-windowidFurther GET request with windowId/h5 ul liRenders the view/li -liChecks if the requested windowID matches the codewindow.name/code/li +liChecks if the requested windowId matches the codewindow.name/code/li liIf it does not match, reload the URL with the right windowId taken from codewindow.name/code/li /ul -h5 id=further-get-request-without-windowidFurther GET request without windowID/h5 +h5 id=further-get-request-without-windowidFurther GET request without windowId/h5 ul liRedirect to the same view with a new windowId in the URL/li liRenders the view/li
svn commit: r897184 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Mon Feb 10 17:06:20 2014 New Revision: 897184 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Feb 10 17:06:20 2014 @@ -1 +1 @@ -1566681 +1566683 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Mon Feb 10 17:06:20 2014 @@ -185,7 +185,6 @@ In addition a cookie with with the dsRid liEvery GET requests streams the the windowhandler.html first -gt; The application probably feels a litte bit slower/li /ul -pbr//p h4 id=change-windowhandlerhtmlChange windowhandler.html/h4 pTo customize the look amp; feel of the windowhandler.html, you can simply provide a own via:/p div class=codehiliteprespan class=nd@Specializes/span @@ -215,7 +214,6 @@ If it's not matching, the view will be r ul liIt could happen that 2 tabs will share the same windowId for 1 request because the codeLAZY/code mode will check lazily, after rendering the view, if the windowId matches the codewindow.name/code. Therefore it could happen that @ViewAccessScoped or other scopes will unintentionally be destroyed. /li /ul -pbr//p h4 id=workflow-exampleWorkflow example/h4 h5 id=first-get-request-with-windowidFirst GET request with windowId/h5 ul @@ -240,18 +238,14 @@ If it's not matching, the view will be r liRenders the view/li liIf it does not match, reload the URL with the right windowId taken from codewindow.name/code/li /ul -pbr//p h3 id=noneNONE/h3 pAny window or browser tab detection will be disabled for the current request.br/ Scopes like @WindowScoped, @GroupedConversationScoped or @ViewAccessScoped will not work. This is also the default mode if the current request doesn't support Javascript or if the user agent is a bot/crawler./p -pbr//p h3 id=delegatedDELEGATED/h3 pDelegates the complete window handling to thew new JSF 2.2 ClientWindow (if not disabled)./p -pbr//p h3 id=customCUSTOM/h3 pEnables to use an complete own codeorg.apache.deltaspike.jsf.spi.scope.window.ClientWindow/code implementation./p -pbr//p h2 id=configurationConfiguration/h2 h3 id=dswindowidds:windowId/h3 pThe component codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) is required to enable the full control of the DeltaSpike window handling.br/
svn commit: r897823 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Feb 13 22:16:49 2014 New Revision: 897823 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 13 22:16:49 2014 @@ -1 +1 @@ -1566683 +1568066 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Feb 13 22:16:49 2014 @@ -81,7 +81,12 @@ div class=toc ul lia href=#multi-window-handling-todoMulti-Window Handling (TODO)/aul -lia href=#introIntro/a/li +lia href=#introIntro/aul +lia href=#historic-considerationsHistoric Considerations/a/li +lia href=#how-jsf-2-changed-the-worldHow JSF-2 changed the world/a/li +lia href=#standard-windowid-handlingStandard windowId Handling/a/li +/ul +/li lia href=#available-modesAvailable modes/aul lia href=#clientwindowCLIENTWINDOW/aul lia href=#advantageAdvantage/a/li @@ -171,19 +176,33 @@ hr / h1 id=multi-window-handling-todoMulti-Window Handling (TODO)/h1 h2 id=introIntro/h2 +h3 id=historic-considerationsHistoric Considerations/h3 +pUntil the end of the 1990s web browsers are usually single threaded and only had one window. But in the last years browsers supporting multiple windows or even tab became the standard. Since those days lots of efforts went into uniquely identifying a single browser window on the server side. Sadly browser windows still lack of a native windowId, thus maintaining web application data in @SessionScoped backing beans is still used in most of the cases. /p +h3 id=how-jsf-2-changed-the-worldHow JSF-2 changed the world/h3 +pThe MyFaces Orchestra community did a good summary about the various ways to handle multiple window support in JSF Applications. Those findings are still valid and up to date, but the environmental conditions have changed slightly since then. +br / +It is easy to pass a windowId around with a POST request, but it gets tricky with GET requests. Due to the new JSF-2 ability to use bookmarkable URLs and deep links, a typical JSF-2 application contains much more GET links than we used to see in JSF-1, thus we have far more href links to cope with./p +h3 id=standard-windowid-handlingStandard windowId Handling/h3 +pWith a classical approach we would not be able to simply add a windowId parameter to such links because if the user would open the link in a new browser window or tab, we would carry the windowId - and thus the window scope - over to the new browser tab/window. The classic solution was to omit the windowId for all GET links, but by doing this we would now loose the window scope far too often with JSF-2! +br / +Marios summary also contains a method to prevent this problem by storing a value directly in the browser window via JavaScript. Usually this is rendered and executed in the same page as the user form. See the Post-render window detection paragraph for a more detailed description. +The major downside of this solution is that we might already pollute 'foreign' beans (and destroy their information) while rendering the page, which means this is not feasible as general solution./p h2 id=available-modesAvailable modes/h2 h3 id=clientwindowCLIENTWINDOW/h3 pEach GET request results in an intermediate small html page which checks if the browser tab fits the requested windowId. br/ When the windowId is valid, a unique token (called codedsRid/code) will be generated for the current request and added to the URL. br/ -In addition a cookie with with the dsRid/windowId will be added. On the server side, the verified windowId will be takes from the cookie./p +In addition a cookie with with the dsRid/windowId will be added. On the server side, the verified windowId will be takes from the cookie. +br/ +For POST request detection, the windowId will be added as hidden input to all forms./p h5 id=advantageAdvantage/h5 ul liCovers all edge cases/li /ul h5 id=disadvantageDisadvantage/h5 ul -liEvery GET requests streams the the windowhandler.html first -gt; The -application probably feels a litte bit slower/li +liHaving the windowhandler.html site rendered between requests sometimes leads to some 'flickering' if the destination page takes some time to load. The browser first renders our windowhandler and only after that the original page will get loaded. br/ +This effect may be minimized by branding the windowhandler.html page and providing an own one with a bgcolor which matches your application.br/ +For html-5 aware browsers we also got rid of this flickering by storing away a 'screenshot' of the first page in onclick
svn commit: r897827 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Feb 13 22:27:51 2014 New Revision: 897827 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 13 22:27:51 2014 @@ -1 +1 @@ -1568066 +1568069 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Feb 13 22:27:51 2014 @@ -80,7 +80,7 @@ /div div class=toc ul -lia href=#multi-window-handling-todoMulti-Window Handling (TODO)/aul +lia href=#multi-window-handlingMulti-Window Handling/aul lia href=#introIntro/aul lia href=#historic-considerationsHistoric Considerations/a/li lia href=#how-jsf-2-changed-the-worldHow JSF-2 changed the world/a/li @@ -120,6 +120,7 @@ lia href=#based-scopesBased Scopes/a/li /ul /li +lia href=#scopes-todoScopes (TODO)/a/li lia href=#type-safe-view-configsType-safe View-Configs/aul lia href=#intro_1Intro/a/li lia href=#motivationMotivation/a/li @@ -169,12 +170,20 @@ lia href=#sub-conversation-groupsSub-Conversation-Groups/a/li /ul /li +lia href=#jsf-managedbean-to-cdi-mapping-todoJSF ManagedBean to CDI mapping (TODO)/a/li +lia href=#converter-validator-injection-todoConverter amp; Validator Injection (TODO)/a/li +lia href=#event-broadcasting-todoEvent broadcasting (TODO)/aul +lia href=#beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/a/li +lia href=#beforephase-afterphaseBeforePhase / AfterPhase/a/li +lia href=#jsf-systemeventJSF' SystemEvent/a/li +/ul +/li lia href=#support-of-ear-deploymentsSupport of EAR deployments/a/li lia href=#hintsHints/a/li /ul /div hr / -h1 id=multi-window-handling-todoMulti-Window Handling (TODO)/h1 +h1 id=multi-window-handlingMulti-Window Handling/h1 h2 id=introIntro/h2 h3 id=historic-considerationsHistoric Considerations/h3 pUntil the end of the 1990s web browsers are usually single threaded and only had one window. But in the last years browsers supporting multiple windows or even tab became the standard. Since those days lots of efforts went into uniquely identifying a single browser window on the server side. Sadly browser windows still lack of a native windowId, thus maintaining web application data in @SessionScoped backing beans is still used in most of the cases. /p @@ -313,6 +322,13 @@ The best way, to apply it for all views, li@ViewAccessScoped/li li@GroupedConversationScoped/li /ul +h1 id=scopes-todoScopes (TODO)/h1 +ul +li@WindowScoped/li +li@ViewAccessScoped/li +li@GroupedConversationScoped/li +li@ViewScoped/li +/ul h1 id=type-safe-view-configsType-safe View-Configs/h1 h2 id=intro_1Intro/h2 pType-safe view-configs are static configs which can be used in combination with every view-technology which is based on Java. @@ -1228,6 +1244,12 @@ A sub-group is just a class or an interf pIn the listing above all beans which implement the Wizard interface will be closed as soon as you close the ImplicitSubGroup./p +h1 id=jsf-managedbean-to-cdi-mapping-todoJSF ManagedBean to CDI mapping (TODO)/h1 +h1 id=converter-validator-injection-todoConverter amp; Validator Injection (TODO)/h1 +h1 id=event-broadcasting-todoEvent broadcasting (TODO)/h1 +h2 id=beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/h2 +h2 id=beforephase-afterphaseBeforePhase / AfterPhase/h2 +h2 id=jsf-systemeventJSF' SystemEvent/h2 h1 id=support-of-ear-deploymentsSupport of EAR deployments/h1 pBefore using features described by this page, please ensure that you are aware of a href=https://issues.apache.org/jira/browse/DELTASPIKE-335;DELTASPIKE-335/a and the corresponding impact./p h1 id=hintsHints/h1
svn commit: r897830 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Feb 13 22:44:47 2014 New Revision: 897830 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 13 22:44:47 2014 @@ -1 +1 @@ -1568069 +1568078 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Feb 13 22:44:47 2014 @@ -120,7 +120,14 @@ lia href=#based-scopesBased Scopes/a/li /ul /li -lia href=#scopes-todoScopes (TODO)/a/li +lia href=#scopes-todoScopes (TODO)/aul +lia href=#windowscoped@WindowScoped/a/li +lia href=#viewaccessscoped@ViewAccessScoped/a/li +lia href=#groupedconversationscoped@GroupedConversationScoped/a/li +lia href=#viewscoped@ViewScoped/a/li +lia href=#jsf-20-scopesJSF 2.0 Scopes/a/li +/ul +/li lia href=#type-safe-view-configsType-safe View-Configs/aul lia href=#intro_1Intro/a/li lia href=#motivationMotivation/a/li @@ -170,7 +177,6 @@ lia href=#sub-conversation-groupsSub-Conversation-Groups/a/li /ul /li -lia href=#jsf-managedbean-to-cdi-mapping-todoJSF ManagedBean to CDI mapping (TODO)/a/li lia href=#converter-validator-injection-todoConverter amp; Validator Injection (TODO)/a/li lia href=#event-broadcasting-todoEvent broadcasting (TODO)/aul lia href=#beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/a/li @@ -323,12 +329,42 @@ The best way, to apply it for all views, li@GroupedConversationScoped/li /ul h1 id=scopes-todoScopes (TODO)/h1 +h2 id=windowscoped@WindowScoped/h2 +pThe window-scope is like a session per window. That means that the data is bound to a window/tab and it not shared between windows (like the session scope does). Usually you need the window-scope instead of the session-scope. There aren't a lot of use-cases which need shared data between windows./p +div class=codehiliteprespan class=nd@WindowScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncPreferencesBean/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o}/span +/pre/div + + +h2 id=viewaccessscoped@ViewAccessScoped/h2 +pIn case of conversations you have to un-scope beans manually (or they we be terminated automatically after a timeout). However, sometimes you need beans with a lifetime which is as long as needed and as short as possible - which are terminated automatically (as soon as possible). In such an use-case you can use this scope. The simple rule is, as long as the bean is referenced by a page - the bean will be available for the next page (if it's used again the bean will be forwarded again). It is important that it's based on the view-id of a page (it isn't based on the request) so e.g. Ajax requests bdon't/b trigger a cleanup if the request doesn't access all view-access scoped beans of the page. That's also the reason for the name @emView/emAccessScoped./p +div class=codehiliteprespan class=nd@ViewAccessScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncWizardBean/span span class=kdimplements/span span class=nSerializable/span +span class=o{/span +span class=c1//.../span +span class=o}/span +/pre/div + + +pHint: br/ +@ViewAccessScoped beans are best used in conjunction with the codeCLIENTWINDOW/code window handling, which ensures a clean browser-tab separation without touching the old windowId. Otherwise a 'open in new tab' on a page with a @ViewAccessScoped bean might cause the termination (and re-initialization) of that bean./p +h2 id=groupedconversationscoped@GroupedConversationScoped/h2 +pSee a href=#grouped-conversations(Grouped-)Conversations/a/p +h2 id=viewscoped@ViewScoped/h2 +pDeltaSpike provides an CDI context for the JSF 2.0/2.1 @javax.faces.bean.ViewScoped. You can simply annotate your bean with @javax.faces.bean.ViewScoped and @Named./p +h2 id=jsf-20-scopesJSF 2.0 Scopes/h2 +pJSF 2.0 introduced new annotations as well as a new scope - the View Scope. CODI allows to use all the CDI mechanisms in beans annotated with:/p ul -li@WindowScoped/li -li@ViewAccessScoped/li -li@GroupedConversationScoped/li -li@ViewScoped/li +lijavax.faces.bean.ApplicationScoped/li +lijavax.faces.bean.SessionScoped/li +lijavax.faces.bean.RequestScoped/li +lijavax.faces.bean.ViewScoped/li /ul +pFurthermore, the managed-bean annotation (javax.faces.bean.ManagedBean) is mapped to @Named from CDI./p +pAll these annotations are mapped automatically. So you won't face issues, if you import a JSF 2 annotation instead of the corresponding CDI annotation./p h1 id=type-safe-view
svn commit: r897831 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Feb 13 22:45:53 2014 New Revision: 897831 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 13 22:45:53 2014 @@ -1 +1 @@ -1568078 +1568079 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Feb 13 22:45:53 2014 @@ -177,7 +177,11 @@ lia href=#sub-conversation-groupsSub-Conversation-Groups/a/li /ul /li -lia href=#converter-validator-injection-todoConverter amp; Validator Injection (TODO)/a/li +lia href=#injection-in-jsf-artifacts-todoInjection in JSF Artifacts (TODO)/aul +lia href=#converter-validatorConverter amp; Validator/a/li +lia href=#phaselistenerPhaseListener/a/li +/ul +/li lia href=#event-broadcasting-todoEvent broadcasting (TODO)/aul lia href=#beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/a/li lia href=#beforephase-afterphaseBeforePhase / AfterPhase/a/li @@ -1280,7 +1284,9 @@ A sub-group is just a class or an interf pIn the listing above all beans which implement the Wizard interface will be closed as soon as you close the ImplicitSubGroup./p -h1 id=converter-validator-injection-todoConverter amp; Validator Injection (TODO)/h1 +h1 id=injection-in-jsf-artifacts-todoInjection in JSF Artifacts (TODO)/h1 +h2 id=converter-validatorConverter amp; Validator/h2 +h2 id=phaselistenerPhaseListener/h2 h1 id=event-broadcasting-todoEvent broadcasting (TODO)/h1 h2 id=beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/h2 h2 id=beforephase-afterphaseBeforePhase / AfterPhase/h2
svn commit: r898009 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 11:43:15 2014 New Revision: 898009 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 11:43:15 2014 @@ -1 +1 @@ -1568079 +1568617 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 11:43:15 2014 @@ -182,10 +182,10 @@ lia href=#phaselistenerPhaseListener/a/li /ul /li -lia href=#event-broadcasting-todoEvent broadcasting (TODO)/aul -lia href=#beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/a/li -lia href=#beforephase-afterphaseBeforePhase / AfterPhase/a/li -lia href=#jsf-systemeventJSF' SystemEvent/a/li +lia href=#event-broadcastingEvent broadcasting/aul +lia href=#beforejsfrequest-afterjsfrequest-todoBeforeJsfRequest / AfterJsfRequest (TODO)/a/li +lia href=#beforephase-afterphase-todoBeforePhase / AfterPhase (TODO)/a/li +lia href=#jsf-systemeventsJSF SystemEvents/a/li /ul /li lia href=#support-of-ear-deploymentsSupport of EAR deployments/a/li @@ -1287,10 +1287,27 @@ A sub-group is just a class or an interf h1 id=injection-in-jsf-artifacts-todoInjection in JSF Artifacts (TODO)/h1 h2 id=converter-validatorConverter amp; Validator/h2 h2 id=phaselistenerPhaseListener/h2 -h1 id=event-broadcasting-todoEvent broadcasting (TODO)/h1 -h2 id=beforejsfrequest-afterjsfrequestBeforeJsfRequest / AfterJsfRequest/h2 -h2 id=beforephase-afterphaseBeforePhase / AfterPhase/h2 -h2 id=jsf-systemeventJSF' SystemEvent/h2 +h1 id=event-broadcastingEvent broadcasting/h1 +h2 id=beforejsfrequest-afterjsfrequest-todoBeforeJsfRequest / AfterJsfRequest (TODO)/h2 +h2 id=beforephase-afterphase-todoBeforePhase / AfterPhase (TODO)/h2 +h2 id=jsf-systemeventsJSF SystemEvents/h2 +pFollowing JSF SystemEvents can be observed via CDI:/p +ul +lijavax.faces.event.PostConstructApplicationEvent/li +lijavax.faces.event.PreDestroyApplicationEvent/li +li +pjavax.faces.event.ExceptionQueuedEvent/p +p:::java +@ApplicationScoped +public class ApplicationConfig +{ +public void init(@Observers PostConstructApplicationEvent event) +{ +// ... +} +}/p +/li +/ul h1 id=support-of-ear-deploymentsSupport of EAR deployments/h1 pBefore using features described by this page, please ensure that you are aware of a href=https://issues.apache.org/jira/browse/DELTASPIKE-335;DELTASPIKE-335/a and the corresponding impact./p h1 id=hintsHints/h1
svn commit: r898010 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 11:47:51 2014 New Revision: 898010 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 11:47:51 2014 @@ -1 +1 @@ -1568617 +1568618 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 11:47:51 2014 @@ -1295,19 +1295,20 @@ A sub-group is just a class or an interf ul lijavax.faces.event.PostConstructApplicationEvent/li lijavax.faces.event.PreDestroyApplicationEvent/li -li -pjavax.faces.event.ExceptionQueuedEvent/p -p:::java -@ApplicationScoped -public class ApplicationConfig -{ -public void init(@Observers PostConstructApplicationEvent event) -{ -// ... -} -}/p -/li +lijavax.faces.event.ExceptionQueuedEvent/li /ul +pExample:/p +div class=codehiliteprespan class=nd@ApplicationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncApplicationConfig/span +span class=o{/span +span class=kdpublic/span span class=ktvoid/span span class=nfinit/spanspan class=o(/spanspan class=nd@Observes/span span class=nPostConstructApplicationEvent/span span class=nevent/spanspan class=o)/span +span class=o{/span +span class=c1// .../span +span class=o}/span +span class=o}/span +/pre/div + + h1 id=support-of-ear-deploymentsSupport of EAR deployments/h1 pBefore using features described by this page, please ensure that you are aware of a href=https://issues.apache.org/jira/browse/DELTASPIKE-335;DELTASPIKE-335/a and the corresponding impact./p h1 id=hintsHints/h1
svn commit: r898012 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 11:54:44 2014 New Revision: 898012 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 11:54:44 2014 @@ -1 +1 @@ -1568618 +1568619 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 11:54:44 2014 @@ -210,7 +210,7 @@ The major downside of this solution is t h3 id=clientwindowCLIENTWINDOW/h3 pEach GET request results in an intermediate small html page which checks if the browser tab fits the requested windowId. br/ When the windowId is valid, a unique token (called codedsRid/code) will be generated for the current request and added to the URL. br/ -In addition a cookie with with the dsRid/windowId will be added. On the server side, the verified windowId will be takes from the cookie. +In addition a cookie with with the dsRid/windowId will be added. On the server side, the verified windowId will be extracted from the cookie. br/ For POST request detection, the windowId will be added as hidden input to all forms./p h5 id=advantageAdvantage/h5 @@ -281,7 +281,7 @@ If it's not matching, the view will be r Scopes like @WindowScoped, @GroupedConversationScoped or @ViewAccessScoped will not work. This is also the default mode if the current request doesn't support Javascript or if the user agent is a bot/crawler./p h3 id=delegatedDELEGATED/h3 -pDelegates the complete window handling to thew new JSF 2.2 ClientWindow (if not disabled)./p +pDelegates the complete window handling to the new JSF 2.2 ClientWindow (if not disabled)./p h3 id=customCUSTOM/h3 pEnables to use an complete own codeorg.apache.deltaspike.jsf.spi.scope.window.ClientWindow/code implementation./p h2 id=configurationConfiguration/h2
svn commit: r898014 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 11:58:35 2014 New Revision: 898014 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 11:58:35 2014 @@ -1 +1 @@ -1568619 +1568620 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 11:58:35 2014 @@ -120,10 +120,10 @@ lia href=#based-scopesBased Scopes/a/li /ul /li -lia href=#scopes-todoScopes (TODO)/aul +lia href=#scopesScopes/aul lia href=#windowscoped@WindowScoped/a/li -lia href=#viewaccessscoped@ViewAccessScoped/a/li -lia href=#groupedconversationscoped@GroupedConversationScoped/a/li +lia href=#viewaccessscoped-since-06@ViewAccessScoped (since 0.6)/a/li +lia href=#groupedconversationscoped-since-06@GroupedConversationScoped (since 0.6)/a/li lia href=#viewscoped@ViewScoped/a/li lia href=#jsf-20-scopesJSF 2.0 Scopes/a/li /ul @@ -332,7 +332,7 @@ The best way, to apply it for all views, li@ViewAccessScoped/li li@GroupedConversationScoped/li /ul -h1 id=scopes-todoScopes (TODO)/h1 +h1 id=scopesScopes/h1 h2 id=windowscoped@WindowScoped/h2 pThe window-scope is like a session per window. That means that the data is bound to a window/tab and it not shared between windows (like the session scope does). Usually you need the window-scope instead of the session-scope. There aren't a lot of use-cases which need shared data between windows./p div class=codehiliteprespan class=nd@WindowScoped/span @@ -343,7 +343,7 @@ The best way, to apply it for all views, /pre/div -h2 id=viewaccessscoped@ViewAccessScoped/h2 +h2 id=viewaccessscoped-since-06@ViewAccessScoped (since 0.6)/h2 pIn case of conversations you have to un-scope beans manually (or they we be terminated automatically after a timeout). However, sometimes you need beans with a lifetime which is as long as needed and as short as possible - which are terminated automatically (as soon as possible). In such an use-case you can use this scope. The simple rule is, as long as the bean is referenced by a page - the bean will be available for the next page (if it's used again the bean will be forwarded again). It is important that it's based on the view-id of a page (it isn't based on the request) so e.g. Ajax requests bdon't/b trigger a cleanup if the request doesn't access all view-access scoped beans of the page. That's also the reason for the name @emView/emAccessScoped./p div class=codehiliteprespan class=nd@ViewAccessScoped/span span class=kdpublic/span span class=kdclass/span span class=ncWizardBean/span span class=kdimplements/span span class=nSerializable/span @@ -355,7 +355,7 @@ The best way, to apply it for all views, pHint: br/ @ViewAccessScoped beans are best used in conjunction with the codeCLIENTWINDOW/code window handling, which ensures a clean browser-tab separation without touching the old windowId. Otherwise a 'open in new tab' on a page with a @ViewAccessScoped bean might cause the termination (and re-initialization) of that bean./p -h2 id=groupedconversationscoped@GroupedConversationScoped/h2 +h2 id=groupedconversationscoped-since-06@GroupedConversationScoped (since 0.6)/h2 pSee a href=#grouped-conversations(Grouped-)Conversations/a/p h2 id=viewscoped@ViewScoped/h2 pDeltaSpike provides an CDI context for the JSF 2.0/2.1 @javax.faces.bean.ViewScoped. You can simply annotate your bean with @javax.faces.bean.ViewScoped and @Named./p
svn commit: r898017 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 12:15:39 2014 New Revision: 898017 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 12:15:39 2014 @@ -1 +1 @@ -1568626 +1568628 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 12:15:39 2014 @@ -290,7 +290,7 @@ This is also the default mode if the cur It will import and render the required script parts for both codeLAZY/code and codeCLIENTWINDOW/code mode.br/ The best way, to apply it for all views, is to add this component to all of your templates./p h3 id=switch-modeSwitch Mode/h3 -pTo switch the mode, you can just provide a codeorg.apache.deltaspike.jsf.api.config.JsfModuleConfig/code:/p +pTo switch the mode, just provide a codeorg.apache.deltaspike.jsf.api.config.JsfModuleConfig/code and overwrite code#getDefaultWindowMode/code:/p div class=codehiliteprespan class=nd@Specializes/span span class=kdpublic/span span class=kdclass/span span class=ncMyJsfModuleConfig/span span class=kdextends/span span class=nJsfModuleConfig/span span class=o{/span @@ -313,7 +313,7 @@ The best way, to apply it for all views, /pre/div -pDon't forget to set the ClientWindowRenderMode to 'CUSTOM' via the codeJsfModuleConfig/code:/p +pDon't forget to set the codeClientWindowRenderMode/code to 'CUSTOM' via the codeJsfModuleConfig/code:/p div class=codehiliteprespan class=nd@Specializes/span span class=kdpublic/span span class=kdclass/span span class=ncMyJsfModuleConfig/span span class=kdextends/span span class=nJsfModuleConfig/span span class=o{/span
svn commit: r898057 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 19:54:59 2014 New Revision: 898057 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 19:54:59 2014 @@ -1 +1 @@ -1568628 +1568671 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 19:54:59 2014 @@ -188,6 +188,15 @@ lia href=#jsf-systemeventsJSF SystemEvents/a/li /ul /li +lia href=#intergration-with-exception-controlIntergration with Exception Control/aul +lia href=#examplesExamples/aul +lia href=#basicBasic/a/li +lia href=#redirectRedirect/a/li +/ul +/li +lia href=#using-a-custom-qualifier-for-jsf-exceptionsUsing a custom qualifier for JSF Exceptions/a/li +/ul +/li lia href=#support-of-ear-deploymentsSupport of EAR deployments/a/li lia href=#hintsHints/a/li /ul @@ -1309,6 +1318,76 @@ A sub-group is just a class or an interf /pre/div +h1 id=intergration-with-exception-controlIntergration with Exception Control/h1 +pWhenever a unhandled exception occurs within the JSF lifecycle, our JSF ExceptionHandler provides a integration to the DeltaSpike Exception Control./p +h2 id=examplesExamples/h2 +h3 id=basicBasic/h3 +div class=codehiliteprespan class=nd@ExceptionHandler/span +span class=kdpublic/span span class=kdclass/span span class=ncApplicationExceptionHandler/span +span class=o{/span +span class=kdpublic/span span class=ktvoid/span span class=nfhandleELException/spanspan class=o(/spanspan class=nd@Handles/span span class=nExceptionEvent/spanspan class=olt;/spanspan class=nELException/spanspan class=ogt;/span span class=nevent/spanspan class=o)/span +span class=o{/span +span class=c1// .../span + +span class=nevent/spanspan class=o./spanspan class=nahandled/spanspan class=o();/span +span class=o}/span +span class=o}/span +/pre/div + + +h3 id=redirectRedirect/h3 +div class=codehiliteprespan class=nd@ExceptionHandler/span +span class=kdpublic/span span class=kdclass/span span class=ncApplicationExceptionHandler/span +span class=o{/span +span class=kdpublic/span span class=ktvoid/span span class=nfhandleELException/spanspan class=o(/spanspan class=nd@Handles/span span class=nExceptionEvent/spanspan class=olt;/spanspan class=nELException/spanspan class=ogt;/span span class=nevent/spanspan class=o)/span +span class=o{/span +span class=nFacesContext/spanspan class=o./spanspan class=nagetCurrentInstance/spanspan class=o()./spanspan class=nagetApplication/spanspan class=o()./spanspan class=nagetNavigationHandler/spanspan class=o()./spanspan class=nahandleNavigation/spanspan class=o(...);/span span class=c1// or ExternalContext etc./span + +span class=c1// required - quot;stopsquot; the JSF lifecycle/span +span class=nFacesContext/spanspan class=o./spanspan class=nagetCurrentInstance/spanspan class=o()./spanspan class=nasetResponseComplete/spanspan class=o();/span + +span class=nevent/spanspan class=o./spanspan class=nahandled/spanspan class=o();/span +span class=o}/span +span class=o}/span +/pre/div + + +h2 id=using-a-custom-qualifier-for-jsf-exceptionsUsing a custom qualifier for JSF Exceptions/h2 +pIn some cases, it's required to differentiate exceptions from JSF and normal exceptions. +This is possible via a CDI qualifier:/p +div class=codehiliteprespan class=nd@Target/spanspan class=o({/span span class=nElementType/spanspan class=o./spanspan class=naTYPE/spanspan class=o,/span span class=nElementType/spanspan class=o./spanspan class=naPARAMETER/span span class=o})/span +span class=nd@Retention/spanspan class=o(/spanspan class=nRetentionPolicy/spanspan class=o./spanspan class=naRUNTIME/spanspan class=o)/span +span class=nd@Documented/span +span class=nd@Qualifier/span +span class=kdpublic/span span class=nd@interface/span span class=nJsf/span +span class=o{/span +span class=o}/span + +span class=nd@Specializes/span +span class=kdpublic/span span class=kdclass/span span class=ncMyJsfModuleConfig/span span class=kdextends/span span class=nJsfModuleConfig/span +span class=o{/span +span class=kdpublic/span span class=nClass/spanspan class=olt;?/span span class=kdextends/span span class=nAnnotation/spanspan class=ogt;/span span class=ngetExceptionQualifier/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=nJsf/spanspan class=o./spanspan class=naclass/spanspan class=o;/span +span class=o}/span +span class=o}/span + +span class=nd@ExceptionHandler/span +span class=kdpublic
svn commit: r898058 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sat Feb 15 19:56:17 2014 New Revision: 898058 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Feb 15 19:56:17 2014 @@ -1 +1 @@ -1568671 +1568672 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sat Feb 15 19:56:17 2014 @@ -1329,6 +1329,7 @@ A sub-group is just a class or an interf span class=o{/span span class=c1// .../span +span class=c1// no other JSF ExceptionHandler should handle this exception.../span span class=nevent/spanspan class=o./spanspan class=nahandled/spanspan class=o();/span span class=o}/span span class=o}/span @@ -1346,6 +1347,7 @@ A sub-group is just a class or an interf span class=c1// required - quot;stopsquot; the JSF lifecycle/span span class=nFacesContext/spanspan class=o./spanspan class=nagetCurrentInstance/spanspan class=o()./spanspan class=nasetResponseComplete/spanspan class=o();/span +span class=c1// no other JSF ExceptionHandler should handle this exception.../span span class=nevent/spanspan class=o./spanspan class=nahandled/spanspan class=o();/span span class=o}/span span class=o}/span @@ -1382,6 +1384,7 @@ This is possible via a CDI qualifier:/p span class=c1// required - quot;stopsquot; the JSF lifecycle/span span class=nFacesContext/spanspan class=o./spanspan class=nagetCurrentInstance/spanspan class=o()./spanspan class=nasetResponseComplete/spanspan class=o();/span +span class=c1// no other JSF ExceptionHandler should handle this exception.../span span class=nevent/spanspan class=o./spanspan class=nahandled/spanspan class=o();/span span class=o}/span span class=o}/span
svn commit: r898643 - in /websites/staging/deltaspike/trunk/content: ./ build.html
Author: buildbot Date: Thu Feb 20 15:18:30 2014 New Revision: 898643 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/build.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 20 15:18:30 2014 @@ -1 +1 @@ -1568673 +1570221 Modified: websites/staging/deltaspike/trunk/content/build.html == --- websites/staging/deltaspike/trunk/content/build.html (original) +++ websites/staging/deltaspike/trunk/content/build.html Thu Feb 20 15:18:30 2014 @@ -91,6 +91,10 @@ lia href=#with-existing-as7With existing AS7/a/li /ul /li +lia href=#wildfly8WildFly8/aul +lia href=#without-existing-wf8Without existing WF8/a/li +/ul +/li lia href=#glassfish-31GlassFish 3.1/a/li lia href=#weblogic-12cWebLogic 12c/a/li /ul @@ -145,6 +149,13 @@ /pre/div +h3 id=wildfly8WildFly8/h3 +h4 id=without-existing-wf8Without existing WF8/h4 +pstrongExecuting the Arquillian tests with JBoss-WF8 (without WF8 installation)/strong/p +div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPwildfly/spanspan class=o-/spanspan class=nbuild/spanspan class=o-/spanspan class=nmanaged/span +/pre/div + + h3 id=glassfish-31GlassFish 3.1/h3 pInstall GlassFish (default setup without admin-password) and start GlassFish with asadmin start-domain strongand/strong asadmin start-database/p pstrongExecuting the Arquillian tests with Oracle Glassfish 3.1+/strong/p
svn commit: r899376 - in /websites/staging/deltaspike/trunk/content: ./ index.html
Author: buildbot Date: Thu Feb 27 09:16:10 2014 New Revision: 899376 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/index.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 27 09:16:10 2014 @@ -1 +1 @@ -1570223 +1572478 Modified: websites/staging/deltaspike/trunk/content/index.html == --- websites/staging/deltaspike/trunk/content/index.html (original) +++ websites/staging/deltaspike/trunk/content/index.html Thu Feb 27 09:16:10 2014 @@ -87,7 +87,7 @@ img src=resources/images/deltaspike-3words.png/p/p img src=resources/images/ds-logo.png width=350 height=250/p/p pDeltaSpike consist of a number of portable CDI extensions that provide useful features for Java application developers./p -pWe will also ensure true portability! We are testing DeltaSpike on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java EE servers like Apache Tomcat and TomEE, JBoss-AS7, Oracle GlassFish 3.1+, IBM Websphere 8.x, Oracle Weblogic Server 12c, Jetty, and others./p +pWe will also ensure true portability! We are testing DeltaSpike on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java EE servers like Apache Tomcat and TomEE, JBoss-AS7, JBoss WildFly8, Oracle GlassFish 3.1+ and 4.x+, IBM Websphere 8.x, Oracle Weblogic Server 12c, Jetty, and others./p !-- pa class=btn btn-primary btn-largeLearn more »/a/p -- /div
svn commit: r899392 - in /websites/staging/deltaspike/trunk/content: ./ spi.html
Author: buildbot Date: Thu Feb 27 11:11:44 2014 New Revision: 899392 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/spi.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Feb 27 11:11:44 2014 @@ -1 +1 @@ -1572478 +1572515 Modified: websites/staging/deltaspike/trunk/content/spi.html == --- websites/staging/deltaspike/trunk/content/spi.html (original) +++ websites/staging/deltaspike/trunk/content/spi.html Thu Feb 27 11:11:44 2014 @@ -124,7 +124,7 @@ DeltaSpike itself doesn't deactivate an pA class-deactivator will be resolved from the environment via the default resolvers or via a custom resolver which allows to use any type of configuration-format. -(see codeorg.apache.deltaspike.core.api.config.ConfigResolver/code). The key is the fully qualified name of the interface (codeorg.apache.deltaspike.core.api.activation.ClassDeactivator/code)./p +(see codeorg.apache.deltaspike.core.api.config.ConfigResolver/code). The key is the fully qualified name of the interface (codeorg.apache.deltaspike.core.spi.activation.ClassDeactivator/code)./p h1 id=configsourceConfigSource/h1 p[TODO]/p h2 id=configsourceproviderConfigSourceProvider/h2
svn commit: r899769 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Mar 2 21:38:43 2014 New Revision: 899769 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Mar 2 21:38:43 2014 @@ -1 +1 @@ -1572515 +1573372 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Mar 2 21:38:43 2014 @@ -113,6 +113,7 @@ /li lia href=#configurationConfiguration/aul lia href=#dswindowidds:windowId/a/li +lia href=#dsdisableclientwindowds:disableClientWindow/a/li lia href=#switch-modeSwitch Mode/a/li lia href=#provide-a-custom-clientwindowProvide a custom ClientWindow/a/li /ul @@ -298,6 +299,15 @@ This is also the default mode if the cur pThe component codeds:windowId/code (codexmlns:ds=http://deltaspike.apache.org/jsf;/code) is required to enable the full control of the DeltaSpike window handling.br/ It will import and render the required script parts for both codeLAZY/code and codeCLIENTWINDOW/code mode.br/ The best way, to apply it for all views, is to add this component to all of your templates./p +h3 id=dsdisableclientwindowds:disableClientWindow/h3 +pSimiliar to JSF 2.2' codedisableClientWindow/code, codeds:disableClientWindow/code provides the ability to disable the rendering of the windowId to all links of all child components:/p +div class=codehiliteprespan class=ntlt;ds:disableClientWindowgt;/span +span class=ntlt;h:link/span span class=navalue=/spanspan class=squot;Link without windowIdquot;/span span class=naoutcome=/spanspan class=squot;target.xhtmlquot;/span span class=nt/gt;/span +span class=ntlt;/ds:disableClientWindowgt;/span +span class=ntlt;h:link/span span class=navalue=/spanspan class=squot;Link with windowIdquot;/span span class=naoutcome=/spanspan class=squot;target.xhtmlquot;/spanspan class=nt/gt;/span +/pre/div + + h3 id=switch-modeSwitch Mode/h3 pTo switch the mode, just provide a codeorg.apache.deltaspike.jsf.api.config.JsfModuleConfig/code and overwrite code#getDefaultWindowMode/code:/p div class=codehiliteprespan class=nd@Specializes/span
svn commit: r899772 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Sun Mar 2 21:45:04 2014 New Revision: 899772 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun Mar 2 21:45:04 2014 @@ -1 +1 @@ -1573373 +1573374 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Sun Mar 2 21:45:04 2014 @@ -363,7 +363,7 @@ The best way, to apply it for all views, h2 id=viewaccessscoped-since-06@ViewAccessScoped (since 0.6)/h2 -pIn case of conversations you have to un-scope beans manually (or they we be terminated automatically after a timeout). However, sometimes you need beans with a lifetime which is as long as needed and as short as possible - which are terminated automatically (as soon as possible). In such an use-case you can use this scope. The simple rule is, as long as the bean is referenced by a page - the bean will be available for the next page (if it's used again the bean will be forwarded again). It is important that it's based on the view-id of a page (it isn't based on the request) so e.g. Ajax requests bdon't/b trigger a cleanup if the request doesn't access all view-access scoped beans of the page. That's also the reason for the name @emView/emAccessScoped./p +pIn case of conversations you have to un-scope beans manually (or they will be terminated automatically after a timeout). However, sometimes you need beans with a lifetime which is as long as needed and as short as possible - which are terminated automatically (as soon as possible). In such an use-case you can use this scope. The simple rule is, as long as the bean is referenced by a page - the bean will be available for the next page (if it's used again the bean will be forwarded again). It is important that it's based on the view-id of a page (it isn't based on the request) so e.g. Ajax requests bdon't/b trigger a cleanup if the request doesn't access all view-access scoped beans of the page. That's also the reason for the name @emView/emAccessScoped./p div class=codehiliteprespan class=nd@ViewAccessScoped/span span class=kdpublic/span span class=kdclass/span span class=ncWizardBean/span span class=kdimplements/span span class=nSerializable/span span class=o{/span
svn commit: r900214 - in /websites/staging/deltaspike/trunk/content: ./ core.html
Author: buildbot Date: Thu Mar 6 08:29:32 2014 New Revision: 900214 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/core.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 6 08:29:32 2014 @@ -1 +1 @@ -1573374 +1574800 Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Thu Mar 6 08:29:32 2014 @@ -102,7 +102,7 @@ /li /ul /li -lia href=#external-resource-loadingExternal Resource Loading/a/li +lia href=#injecting-resourcesInjecting Resources/a/li lia href=#exception-controlException Control/a/li lia href=#exception-handling-usageException Handling - Usage/aul lia href=#eventing-into-the-exception-handling-frameworkEventing into the exception handling framework/a/li @@ -413,15 +413,15 @@ In case of a message-key, the message-re pA locale resolver provides the current locale. The locale is e.g. used to by a codeMessageResolver/code to choose the correct language for the message-text./p pstrongConfiguration of a locale-resolver/strong/p p[TODO]/p -h2 id=external-resource-loadingExternal Resource Loading/h2 +h2 id=injecting-resourcesInjecting Resources/h2 pDeltaSpike has simple APIs for performing basic resource loading and property file reading./p div class=codehiliteprespan class=nd@Inject/span -span class=nd@ExternalResource/spanspan class=o(/spanspan class=squot;myfile.propertiesquot;/spanspan class=o)/span +span class=nd@InjectableResource/spanspan class=o(/spanspan class=squot;myfile.propertiesquot;/spanspan class=o)/span span class=kdprivate/span span class=nInputStream/span span class=ninputStream/spanspan class=o;/span /pre/div -pThis can be used to read files, from classpath or on your local file system, using two default implementations: codeClasspathResourceProvider/code and codeFileResourceProvider/code. They can be extended as well by implementing the codeExternalResourceProvider/code interface to allow reading from alternate sources, if needed (e.g. database LOBs, NoSQL storage areas)./p +pThis can be used to read files, from classpath or on your local file system, using two default implementations: codeClasspathResourceProvider/code and codeFileResourceProvider/code. They can be extended as well by implementing the codeInjectableResourceProvider/code interface to allow reading from alternate sources, if needed (e.g. database LOBs, NoSQL storage areas)./p h2 id=exception-controlException Control/h2 pException handling in DeltaSpike is based around the CDI eventing model. While the implementation of exception handlers may not be the same as a CDI event,
svn commit: r901422 - in /websites/staging/deltaspike/trunk/content: ./ jsf.html
Author: buildbot Date: Thu Mar 13 10:42:39 2014 New Revision: 901422 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 13 10:42:39 2014 @@ -1 +1 @@ -1575005 +1577095 Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Mar 13 10:42:39 2014 @@ -1387,7 +1387,7 @@ This is possible via a CDI qualifier:/p span class=nd@ExceptionHandler/span span class=kdpublic/span span class=kdclass/span span class=ncApplicationExceptionHandler/span span class=o{/span -span class=kdpublic/span span class=ktvoid/span span class=nfhandleELException/spanspan class=o(/spanspan class=nd@Handles/span span class=nd@JsfExceptionEvent/spanspan class=olt;/spanspan class=nELException/spanspan class=ogt;/span span class=nevent/spanspan class=o)/span +span class=kdpublic/span span class=ktvoid/span span class=nfhandleELException/spanspan class=o(/spanspan class=nd@Handles/span span class=nd@Jsf/span span class=nExceptionEvent/spanspan class=olt;/spanspan class=nELException/spanspan class=ogt;/span span class=nevent/spanspan class=o)/span span class=o{/span span class=nFacesContext/spanspan class=o./spanspan class=nagetCurrentInstance/spanspan class=o()./spanspan class=nagetApplication/spanspan class=o()./spanspan class=nagetNavigationHandler/spanspan class=o()./spanspan class=nahandleNavigation/spanspan class=o(...);/span span class=c1// or ExternalContext etc./span
svn commit: r901937 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Mon Mar 17 07:05:12 2014 New Revision: 901937 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/steps_for_a_release.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Mar 17 07:05:12 2014 @@ -1 +1 @@ -1577095 +1578249 Added: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (added) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Mon Mar 17 07:05:12 2014 @@ -0,0 +1,274 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - /title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=deltaspike.apache.org name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1/h1 + /div + div class=toc +ul +lia href=#preparationsPreparations/a/li +lia href=#first-stepsFirst steps/a/li +lia href=#voteVote/aul +lia href=#start-the-voteStart the vote/a/li +/ul +/li +lia href=#announce-the-voteAnnounce the vote/a/li +lia href=#perform-the-final-releasePerform the final release/aul +lia href=#close-the-voteClose
svn commit: r902489 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Thu Mar 20 07:43:37 2014 New Revision: 902489 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 07:43:37 2014 @@ -1 +1 @@ -1578249 +1579551 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Thu Mar 20 07:43:37 2014 @@ -130,6 +130,8 @@ span class=o///spanspan class=nhint/spanspan class=p:/span span class=ndon/spanspan class=o#39;/spanspan class=nt/span span class=nuse/span span class=o-/spanspan class=nDdryRun/spanspan class=p=/spanspan class=ntrue/span span class=o--/span span class=nsince/span span class=nit/span span class=ncan/span span class=kbreak/span span class=nthe/span span class=nnext/span span class=nstep/span span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nperform/span +span class=o///span!!!span class=ncheck/span span class=nthe/span span class=ncreated/span span class=ncommits/span span class=nincluding/span span class=nuser/spanspan class=o-/spanspan class=nname/span span class=nand/span span class=nemail/span + span class=o///spanspan class=nlogin/span span class=nto/span span class=nhttps/spanspan class=p:/spanspan class=o///spanspan class=nrepository/spanspan class=p./spanspan class=napache/spanspan class=p./spanspan class=norg/spanspan class=o//span span class=nand/span span class=ngo/span span class=nto/span quot;span class=nStaging/span span class=nRepositories/spanquot; span class=o///spanspan class=ncheck/span span class=nesp/spanspan class=p./span span class=p../spanspan class=o.//spanspan class=norg/spanspan class=o//spanspan class=napache/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o//spanspan class=p[/spanspan class=nversion/spanspan class=p]/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/spanspan class=o-/spanspan class=nsource/spanspan class=o-/spanspan class=nrelease/spanspan class=p./spanspan class=nzip/span span class=o///spanspan class=nclose/span span class=nthe/span span class=nrepository/span @@ -203,8 +205,16 @@ pIf the binding majority approved the vote continue./p ul liLogin to https://repository.apache.org/ and release the repository/li -liMerge release branch into master and push it to the ASF repository/li -liCreate the release at jira/li +li +pMerge release branch into master and push it to the ASF repository/p +pgit checkout master +git merge deltaspike-[version] +git push deltaspike-[version] +git push deltaspike-project-[version]/p +/li +li +pCreate the release at jira/p +/li liClose the corresponding tickets of the version/li liWait some hours and check http://repo2.maven.org/maven2/org/apache/deltaspike/li /ul
svn commit: r902490 - /websites/staging/deltaspike/trunk/content/
Author: buildbot Date: Thu Mar 20 07:50:29 2014 New Revision: 902490 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 07:50:29 2014 @@ -1 +1 @@ -1579551 +1579554
svn commit: r902491 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Thu Mar 20 07:55:26 2014 New Revision: 902491 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 07:55:26 2014 @@ -1 +1 @@ -1579554 +1579556 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Thu Mar 20 07:55:26 2014 @@ -205,18 +205,16 @@ pIf the binding majority approved the vote continue./p ul liLogin to https://repository.apache.org/ and release the repository/li +liMerge release branch into master and push the branch and tag to the ASF repository (see below)/li +liCreate the release at jira/li +liClose the corresponding tickets of the version/li li -pMerge release branch into master and push it to the ASF repository/p +pWait some hours and check http://repo2.maven.org/maven2/org/apache/deltaspike/p pgit checkout master git merge deltaspike-[version] git push deltaspike-[version] git push deltaspike-project-[version]/p /li -li -pCreate the release at jira/p -/li -liClose the corresponding tickets of the version/li -liWait some hours and check http://repo2.maven.org/maven2/org/apache/deltaspike/li /ul h2 id=upload-artifactsUpload artifacts/h2 pTODO //add new procedure/p
svn commit: r902492 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Thu Mar 20 08:00:19 2014 New Revision: 902492 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 08:00:19 2014 @@ -1 +1 @@ -1579556 +1579558 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Thu Mar 20 08:00:19 2014 @@ -205,16 +205,20 @@ pIf the binding majority approved the vote continue./p ul liLogin to https://repository.apache.org/ and release the repository/li -liMerge release branch into master and push the branch and tag to the ASF repository (see below)/li +liMerge release branch into master and push the branch and tag to the ASF repository/li +/ul +pAlways do a merge in this case (not a rebase):/p +div class=codehiliteprespan class=ngit/span span class=ncheckout/span span class=nmaster/span +span class=ngit/span span class=nmerge/span span class=ndeltaspike/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span +span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span +span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span +/pre/div + + +ul liCreate the release at jira/li liClose the corresponding tickets of the version/li -li -pWait some hours and check http://repo2.maven.org/maven2/org/apache/deltaspike/p -pgit checkout master -git merge deltaspike-[version] -git push deltaspike-[version] -git push deltaspike-project-[version]/p -/li +liWait some hours and check http://repo2.maven.org/maven2/org/apache/deltaspike/li /ul h2 id=upload-artifactsUpload artifacts/h2 pTODO //add new procedure/p
svn commit: r902497 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Thu Mar 20 08:41:01 2014 New Revision: 902497 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 08:41:01 2014 @@ -1 +1 @@ -1579558 +1579560 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Thu Mar 20 08:41:01 2014 @@ -209,9 +209,9 @@ /ul pAlways do a merge in this case (not a rebase):/p div class=codehiliteprespan class=ngit/span span class=ncheckout/span span class=nmaster/span -span class=ngit/span span class=nmerge/span span class=ndeltaspike/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span -span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span -span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-\/spanspan class=p[/spanspan class=nversion/spanspan class=o\/spanspan class=p]/span +span class=ngit/span span class=nmerge/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span +span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span +span class=ngit/span span class=npush/span span class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span /pre/div @@ -226,18 +226,19 @@ h3 id=e-mailsE-Mails/h3 div class=codehiliteprespan class=k[ANNOUNCE] Release of Apache DeltaSpike [version]/span -span class=errThe/span span class=errApache/span span class=errDeltaSpike/span span class=errteam/span span class=erris/span span class=errpleased/span span class=errto/span span class=errannounce/span span class=errthe/span span class=err.../span span class=errrelease/span span class=errof/span span class=errDeltaSpike./span +span class=errThe/span span class=errApache/span span class=errDeltaSpike/span span class=errteam/span span class=erris/span span class=errpleased/span span class=errto/span span class=errannounce/span span class=errthe/span span class=err6th/span span class=errrelease/span span class=errof/span span class=errDeltaSpike./span -span class=errApache/span span class=errDeltaSpike/span span class=erris/span span class=errnot/span span class=erra/span span class=errCDI-container,/span span class=errbut/span span class=erra/span span class=errportable/span span class=errCDI/span span class=errextension/span span class=err(see/span span class=err[1])./span +span class=errApache/span span class=errDeltaSpike/span span class=erris/span span class=errnot/span span class=erra/span span class=errCDI-container,/span span class=errbut/span span class=erra/span span class=errportable/span span class=errCDI/span span class=errextension./span + +span class=errDocumentation:/span +span class=errhttp://deltaspike.apache.org/documentation.html/span span class=errRelease/span span class=errNotes:/span -span class=errhttp://s.apache.org/DeltaSpike_/spanspan class=k[version]/span +span class=errhttp://s.apache.org/DeltaSpike_06/span span class=errEnjoy!/span span class=k[name]/span - -span class=err[1]/span span class=errhttp://deltaspike.apache.org/documentation.html/span /pre/div
svn commit: r902564 - in /websites/staging/deltaspike/trunk/content: ./ data.html
Author: buildbot Date: Thu Mar 20 17:35:47 2014 New Revision: 902564 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/data.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Mar 20 17:35:47 2014 @@ -1 +1 @@ -1579560 +1579691 Modified: websites/staging/deltaspike/trunk/content/data.html == --- websites/staging/deltaspike/trunk/content/data.html (original) +++ websites/staging/deltaspike/trunk/content/data.html Thu Mar 20 17:35:47 2014 @@ -115,6 +115,7 @@ lia href=#any-resultAny Result/a/li /ul /li +lia href=#transactionsTransactions/a/li lia href=#extensionsExtensions/aul lia href=#query-delegatesQuery Delegates/a/li lia href=#implementing-the-query-delegateImplementing the Query Delegate/a/li @@ -221,13 +222,13 @@ inadvertantly depending on an implementa h2 id=setup-your-applicationSetup your application/h2 pDeltaSpike data requires an codeEntityManager/code exposed via a CDI producer - which is common practice in Java EE 6 applications./p -div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncDataSourceProducer/span +div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span span class=o{/span span class=nd@PersistenceUnit/span span class=kdprivate/span span class=nEntityManagerFactory/span span class=nemf/spanspan class=o;/span -span class=nd@Produces/span +span class=nd@Produces/span span class=c1// you can also make this @RequestScoped/span span class=kdpublic/span span class=nEntityManager/span span class=nfcreate/spanspan class=o()/span span class=o{/span span class=kreturn/span span class=nemf/spanspan class=o./spanspan class=nacreateEntityManager/spanspan class=o();/span @@ -248,6 +249,16 @@ in Java EE 6 applications./p pThis allows the codeEntityManager/code to be injected over CDI instead of only being used with a code@PersistenceContext/code annotation. Using multiple codeEntityManager/code is explored in more detail in a following section./p +pIf you use a JTA DataSource with your codeEntityManager/code, you also have to configure the +codeTransactionStrategy/code your repositories use. Adapt your codebeans.xml/code for this:/p +div class=codehiliteprespan class=ntlt;beansgt;/span +span class=ntlt;alternativesgt;/span +span class=ntlt;classgt;/spanorg.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategyspan class=ntlt;/classgt;/span +span class=ntlt;/alternativesgt;/span +span class=ntlt;/beansgt;/span +/pre/div + + pYou're now ready to use repositories in your application!/p h1 id=core-conceptsCore Concepts/h1 h2 id=repositoriesRepositories/h2 @@ -715,6 +726,40 @@ result list./p pFor method expressions, the codefindAnyBy/code prefix can be used. For code@Query/code annotations, the codesingleResult/code attribute can be overridden with the codeSingleResultType.ANY/code enum./p pThis option will not throw an exception./p +h1 id=transactionsTransactions/h1 +pIf you call any method expression, code@Query/code-annotated method or a method from the codeEntityRepository/code, the +repository will figure out if a transaction is needed or not, and if so, if there is already one ongoing. +The Data module uses the codeTransactionStrategy/code provided by the a href=http://deltaspike.apache.org/jpa; title=JPA moduleJPA Module/a for this. See the JPA module +documentation for more details./p +pstrongCAUTION:/strong/p +blockquote +pSome containers do not support codeBeanManagedUserTransactionStrategy/code! As JTA has still some portability +issues even in Java EE 7, it might be required that you implement your own codeTransactionStrategy/code. +We will think about providing an acceptable solution for this./p +/blockquote +pstrongCAUTION:/strong/p +blockquote +pAnnotating Repository methods with code@Transactional/code is not yet supported, but will follow./p +/blockquote +pIf you need to open a transaction on a concrete repository method, we currently recommend creating an extension +(see next chapter) which uses code@Transactional/code and might look like the following sample. /p +div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncTxExtension/spanspan class=olt;/spanspan class=nE/spanspan class=ogt;/span span class=kdimplements/span span class=nTxRepository/span span class=c1// this is your extension interface/span +span class=o{/span +span class=nd@Inject/span +span class=kdprivate/span span class=nEntityManager/span span class=nem/spanspan class=o;/span + +span class=nd@Override/span span class=nd
svn commit: r904063 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Fri Mar 28 13:25:20 2014 New Revision: 904063 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Mar 28 13:25:20 2014 @@ -1 +1 @@ -1582745 +1582747 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Fri Mar 28 13:25:20 2014 @@ -223,7 +223,7 @@ h2 id=upload-artifactsUpload artifacts/h2 div class=codehiliteprespan class=nsvn/span span class=nco/span span class=nhttps/spanspan class=p:/spanspan class=o///spanspan class=ndist/spanspan class=p./spanspan class=napache/spanspan class=p./spanspan class=norg/spanspan class=o//spanspan class=nrepos/spanspan class=o//spanspan class=ndist/spanspan class=o//spanspan class=nrelease/spanspan class=o//spanspan class=ndeltaspike/span span class=nmkdir/span span class=p[/spanspan class=nversion/spanspan class=p]/span -span class=o///spanspan class=nadd/span span class=nand/span span class=ncommit/span span class=nsource/span span class=nartifacts/span span class=p(/spanspan class=o*/spanspan class=nsource/spanspan class=o-/spanspan class=nrelease/spanspan class=p./spanspan class=nzip/span span class=o+/span span class=nasc/spanspan class=p,/span span class=nmd5/spanspan class=p,/span span class=nsha1/spanspan class=p)/span +span class=o///spanspan class=nadd/span span class=nand/span span class=ncommit/span span class=nthe/span span class=nartifacts/span span class=p(/spanspan class=nat/span span class=nleast/span span class=o*/spanspan class=nsource/spanspan class=o-/spanspan class=nrelease/spanspan class=p./spanspan class=nzip/span span class=o+/span span class=nasc/spanspan class=p,/span span class=nmd5/spanspan class=p,/span span class=nsha1/spanspan class=p)/span /pre/div
svn commit: r904850 - in /websites/staging/deltaspike/trunk/content: ./ migration-guide.html
Author: buildbot Date: Fri Apr 4 07:10:11 2014 New Revision: 904850 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/migration-guide.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Apr 4 07:10:11 2014 @@ -1 +1 @@ -1582747 +1584539 Modified: websites/staging/deltaspike/trunk/content/migration-guide.html == --- websites/staging/deltaspike/trunk/content/migration-guide.html (original) +++ websites/staging/deltaspike/trunk/content/migration-guide.html Fri Apr 4 07:10:11 2014 @@ -120,7 +120,7 @@ h1 id=apache-myfaces-codi-to-apache-deltaspikeApache MyFaces CODI to Apache DeltaSpike/h1 h2 id=example-overviewExample Overview/h2 ul -lia href=http://s.apache.org/Ymz;Fullstack CODI to DeltaSpike @ os890/a/li +lia href=http://s.apache.org/xA;Fullstack CODI to DeltaSpike @ os890/a/li /ul h2 id=basically-unchanged-partsBasically unchanged parts/h2 pHere you can see features which were added and the concept itself didn't change (only the packages, config keys,...)/p
svn commit: r905049 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Sat Apr 5 19:39:30 2014 New Revision: 905049 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Apr 5 19:39:30 2014 @@ -1 +1 @@ -1585175 +1585176 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Sat Apr 5 19:39:30 2014 @@ -93,6 +93,7 @@ lia href=#announce-the-releaseAnnounce the Release/aul lia href=#e-mailsE-Mails/a/li lia href=#twitterTwitter/a/li +lia href=#newsNews/a/li /ul /li /ul @@ -257,6 +258,10 @@ pe.g.:/p div class=codehiliteprespan class=p[/spanspan class=nANNOUNCE/spanspan class=p]/span span class=nThe/span span class=nApache/span #span class=nDeltaSpike/span span class=nteam/span span class=nis/span span class=npleased/span span class=nto/span span class=nannounce/span span class=nhttp/spanspan class=p:/spanspan class=o///spanspan class=ns/spanspan class=p./spanspan class=napache/spanspan class=p./spanspan class=norg/spanspan class=o//spanspan class=nDeltaSpike_/spanspan class=p[/spanspan class=nversion/spanspan class=p]./span span class=nFeel/span span class=nfree/span span class=nto/span span class=ntest/span span class=nit/span! span class=nFeedback/span span class=nis/span span class=nvery/span span class=nwelcome/span! /pre/div + + +h3 id=newsNews/h3 +pAdd the release to http://deltaspike.apache.org/news.html/p /div /div
svn commit: r905822 - in /websites/staging/deltaspike/trunk/content: ./ jpa.html
Author: buildbot Date: Fri Apr 11 15:45:04 2014 New Revision: 905822 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jpa.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Apr 11 15:45:04 2014 @@ -1 +1 @@ -1585176 +1586690 Modified: websites/staging/deltaspike/trunk/content/jpa.html == --- websites/staging/deltaspike/trunk/content/jpa.html (original) +++ websites/staging/deltaspike/trunk/content/jpa.html Fri Apr 11 15:45:04 2014 @@ -82,6 +82,7 @@ ul lia href=#transactional@Transactional/a/li lia href=#transactionscoped@TransactionScoped/a/li +lia href=#extended-persistence-contextsExtended Persistence Contexts/a/li lia href=#jta-supportJTA Support/a/li /ul /div @@ -382,6 +383,95 @@ So it's possible to catch an exception i /pre/div +h1 id=extended-persistence-contextsExtended Persistence Contexts/h1 +pFrameworks like MyFaces Orchestra provide a feature which allows keeping an codeEntityManager/code across multiple requests. That means it isn't required to call codeEntityManager#merge/code to add detached entities to the context. However, several application architectures don't allow such an approach (due to different reasons like scalability). In theory that sounds nice and it works pretty well for small to medium sized projects esp. if an application doesn't rely on session replication in clusters. That also means that such an approach restricts your target environment from the very beginning. One of the base problems is that an codeEntityManager/code isn't serializable. Beans which are scoped in a normal-scoped CDI context have to be serializable. So by default it isn't allowed by CDI to provide a producer-method which exposes e.g. a conversation scoped codeEntityManager/code as it is. We strongdon't/strong recommend to use this approach and therefore it isn't available out-of-the-box. However, if you really need this approach to avoid calling code#merge/code for your detached entities, it's pretty simple to add this functionality./p +pUsage of a simple codeExtendedEntityManager/code/p +div class=codehiliteprespan class=nd@Inject/span +span class=kdprivate/span span class=nEntityManager/span span class=nentityManager/spanspan class=o;/span +/pre/div + + +pAs you see the usage is the same. You strongdon't/strong have to use codeExtendedEntityManager/code at the injection point. It's just needed in the producer-method:/p +pProducer for the default Extended-codeEntityManager/code (no EE-Server):/p +div class=codehiliteprespan class=c1//.../span +span class=kdpublic/span span class=kdclass/span span class=ncExtendedEntityManagerProducer/span +span class=o{/span +span class=c1//or manual bootstrapping/span +span class=nd@PersistenceContext/span +span class=kdprivate/span span class=nEntityManager/span span class=nentityManager/spanspan class=o;/span + +span class=nd@Produces/span +span class=nd@RequestScoped/span +span class=kdprotected/span span class=nExtendedEntityManager/span span class=nfcreateEntityManager/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=knew/span span class=nfExtendedEntityManager/spanspan class=o(/spanspan class=kthis/spanspan class=o./spanspan class=naentityManager/spanspan class=o);/span +span class=o}/span + +span class=kdprotected/span span class=ktvoid/span span class=nfcloseEntityManager/spanspan class=o(/spanspan class=nd@Disposes/span span class=nExtendedEntityManager/span span class=nentityManager/spanspan class=o)/span +span class=o{/span +span class=kif/span span class=o(/spanspan class=nentityManager/spanspan class=o./spanspan class=naisOpen/spanspan class=o())/span +span class=o{/span +span class=nentityManager/spanspan class=o./spanspan class=naclose/spanspan class=o();/span +span class=o}/span +span class=o}/span +span class=o}/span +/pre/div + + +pProducer for the default Extended-codeEntityManager/code (EE-Server):/p +div class=codehiliteprespan class=nd@ApplicationScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncExtendedEntityManagerProducer/span +span class=o{/span +span class=nd@PersistenceUnit/span +span class=kdprivate/span span class=nEntityManagerFactory/span span class=nentityManagerFactory/spanspan class=o;/span + +span class=nd@Produces/span +span class=nd@Default/span +span class=nd@RequestScoped/span +span class=kdpublic/span span class=nExtendedEntityManager/span span class=nfcreate/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=knew/span span class
svn commit: r905823 - in /websites/staging/deltaspike/trunk/content: ./ jpa.html
Author: buildbot Date: Fri Apr 11 15:52:08 2014 New Revision: 905823 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/jpa.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Apr 11 15:52:08 2014 @@ -1 +1 @@ -1586690 +1586702 Modified: websites/staging/deltaspike/trunk/content/jpa.html == --- websites/staging/deltaspike/trunk/content/jpa.html (original) +++ websites/staging/deltaspike/trunk/content/jpa.html Fri Apr 11 15:52:08 2014 @@ -103,7 +103,7 @@ If you are using features described by t pThe following example shows a simple producer for an codeEntityManager/code and the corresponding dispose-method. Producing it as request scoped bean means that the dispose method will be called on finishing the request. As an alternative it's possible to use a special scope called code@TransactionScoped/code provided by the same DeltaSpike module./p -pProducer for the default EntityManager (no EE-Server):/p +pProducer for the default EntityManager (strongno EE-Server/strong):/p div class=codehiliteprespan class=c1//.../span span class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span span class=o{/span @@ -129,7 +129,7 @@ As an alternative it's possible to use a /pre/div -pProducer for the default EntityManager (EE-Server):/p +pProducer for the default EntityManager (strongEE-Server/strong):/p div class=codehiliteprespan class=nd@ApplicationScoped/span span class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span span class=o{/span @@ -392,7 +392,7 @@ So it's possible to catch an exception i pAs you see the usage is the same. You strongdon't/strong have to use codeExtendedEntityManager/code at the injection point. It's just needed in the producer-method:/p -pProducer for the default Extended-codeEntityManager/code (no EE-Server):/p +pProducer for the default Extended-codeEntityManager/code (strongno EE-Server/strong):/p div class=codehiliteprespan class=c1//.../span span class=kdpublic/span span class=kdclass/span span class=ncExtendedEntityManagerProducer/span span class=o{/span @@ -418,7 +418,7 @@ So it's possible to catch an exception i /pre/div -pProducer for the default Extended-codeEntityManager/code (EE-Server):/p +pProducer for the default Extended-codeEntityManager/code (strongEE-Server/strong):/p div class=codehiliteprespan class=nd@ApplicationScoped/span span class=kdpublic/span span class=kdclass/span span class=ncExtendedEntityManagerProducer/span span class=o{/span
svn commit: r907140 - in /websites/staging/deltaspike/trunk/content: ./ container-control.html core.html documentation.html jsf.html test-control.html
Author: buildbot Date: Mon Apr 28 10:56:22 2014 New Revision: 907140 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/container-control.html websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/jsf.html websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Apr 28 10:56:22 2014 @@ -1 +1 @@ -1586702 +1590599 Modified: websites/staging/deltaspike/trunk/content/container-control.html == --- websites/staging/deltaspike/trunk/content/container-control.html (original) +++ websites/staging/deltaspike/trunk/content/container-control.html Mon Apr 28 10:56:22 2014 @@ -95,7 +95,25 @@ liThe strongContextControl/strong interface allows to control the life-cycle of the built-in contexts of the CDI container./li /ul h2 id=cdicontainerCdiContainer/h2 -pSee the Java SE part a href=#start-a-cdi-container-using-java-seabove/a./p +pYou can use the CdiContainerLoader as a simple factory to gain access to the underlying CdiContainer implementation. This is of little interest for Java EE applications since the CDI Container +already gets properly booted and shut down by the Servlet container integration./p +div class=codehiliteprespan class=c1// this will give you a CdiContainer for Weld or OWB, depending on the jar you added/span +span class=nCdiContainer/span span class=ncdiContainer/span span class=o=/span span class=nCdiContainerLoader/spanspan class=o./spanspan class=nagetCdiContainer/spanspan class=o();/span + +span class=c1// now we gonna boot the CDI container. This will trigger the classpath scan, etc/span + span class=ncdiContainer/spanspan class=o./spanspan class=naboot/spanspan class=o();/span + +span class=c1// and finally we like to start all built-in contexts/span +span class=ncdiContainer/spanspan class=o./spanspan class=nagetContextControl/spanspan class=o()./spanspan class=nastartContexts/spanspan class=o();/span + +span class=c1// now we can use CDI in our SE application./span +span class=c1// And there is not a single line of OWB or Weld specific code in your project!/span + +span class=c1// finally we gonna stop the container/span +span class=ncdiContainer/spanspan class=o./spanspan class=nashutdown/spanspan class=o();/span +/pre/div + + h2 id=contextcontrol-usageContextControl usage/h2 pThe codeContextControl/code interface allows you to start and stop built-in standard Contexts like code@RequestScoped/code, code@ConversationScoped/code, code@SessionScoped/code, etc. It is provided as code@Dependent/code bean and can get injected in the classic CDI way. This is not only usable in Java SE projects but also very helpful in Servlets and Java EE containers./p pstrongRestarting the RequestContext in unit tests/strong/p Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Mon Apr 28 10:56:22 2014 @@ -78,7 +78,24 @@ div class=page-title h1Core/h1 /div - div class=toc + pTitle: Core +Notice: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./p +div class=toc ul lia href=#core-apiCore - API/aul lia href=#deltaspike-configurationDeltaSpike Configuration/a/li @@ -125,7 +142,16 @@ lia href=#scopesScopes/a/li /ul /li -lia href=#core-utilsCore - Utils/a/li +lia href=#core-utilsCore - Utils/aul +lia href=#arraysutilsArraysUtils/a/li +lia href=#beanutilsBeanUtils/a/li +lia href=#classdeactivationutilsClassDeactivationUtils/a/li
svn commit: r907145 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Mon Apr 28 11:32:05 2014 New Revision: 907145 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Apr 28 11:32:05 2014 @@ -1 +1 @@ -1590599 +1590609 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Mon Apr 28 11:32:05 2014 @@ -78,9 +78,29 @@ div class=page-title h1Documentation/h1 /div - div class=toc + pTitle: Documentation +Notice: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./p +div class=toc ul -lia href=#introductionIntroduction/a/li +lia href=#introductionIntroduction/aul +lia href=#what-is-a-portable-cdi-extensionWhat is a portable CDI extension ?/a/li +/ul +/li lia href=#getting-startedGetting Started/aul lia href=#project-configuration-without-mavenProject Configuration without Maven/a/li lia href=#project-configuration-with-mavenProject Configuration with Maven/aul @@ -128,6 +148,7 @@ lia href=#scheduler-optionalScheduler (optional)/a/li /ul /li +lia href=#deltaspike-spiDeltaSpike SPI/a/li lia href=#externalExternal/aul lia href=#blogsBlogs/a/li lia href=#add-onsAdd-ons/a/li @@ -148,7 +169,9 @@ not provided out of the box by the CDI s liManage messages and configurations/li /ul pThe project is currently tested on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java Web containers like Apache TomEE or JavaEE, JBoss-AS7, Oracle GlassFish 3.1+, Oracle Weblogic Server 12c./p -p[TODO] Define what portable means like also CDI extension and refers to documentation links/p +h2 id=what-is-a-portable-cdi-extensionWhat is a portable CDI extension ?/h2 +pA portable CDI extension means that CDI itself can be extended. Such extensions can be used with any spec. compliant CDI implementation. From the user perspective, it means that you can simply drop in CDI extension jars into your runtime e.g. to integrate third-party APIs with CDI or to improve existing JavaEE-APIs./p +pThe CDI Portable extensions SPI (Service Provider Interface) allows to define additional beans, scopes, stereotypes, interceptors and decorators. The SPI of CDI is a powerful vehicle for innovation and DeltaSpike is an example of it./p h1 id=getting-startedGetting Started/h1 pA DeltaSpike project can be designed using or not Apache Maven and consists in a collection of jar files. Depending on your needs, you will package DeltaSpike core jar (api and impl) files or extend the list with DeltaSpike modules. DeltaSpike Api and Impl are mandatory and provide code required to benefits of portable CDI extensions or useful features @@ -516,6 +539,9 @@ The resolved bean is a normal CDI bean w h2 id=scheduler-optionalScheduler (optional)/h2 pDefinition : This module provides a simple integration with Quartz v2 (per default) or any other scheduler which supports cron-expressions for job-classes./p pa class=btn href=scheduler.htmlView details »/a/p +h1 id=deltaspike-spiDeltaSpike SPI/h1 +pDeltaSpike Service Provider Interface (SPI)/p +pa class=btn href=spi.htmlView details »/a/p h1 id=externalExternal/h1 h2 id=blogsBlogs/h2 ul
svn commit: r907147 - in /websites/staging/deltaspike/trunk/content: ./ examples.html
Author: buildbot Date: Mon Apr 28 11:35:37 2014 New Revision: 907147 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/examples.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Apr 28 11:35:37 2014 @@ -1 +1 @@ -1590609 +1590610 Modified: websites/staging/deltaspike/trunk/content/examples.html == --- websites/staging/deltaspike/trunk/content/examples.html (original) +++ websites/staging/deltaspike/trunk/content/examples.html Mon Apr 28 11:35:37 2014 @@ -94,9 +94,8 @@ (the shown use-cases also work with emWeld/em - only the bootstrapping of the container is different, because this example is based on Java-SE and therefore outside of an Java-EE(6+) application server./p h1 id=externalExternal/h1 ul -lia href=http://s.apache.org/Ymz;Fullstack CODI to DeltaSpike @ os890/a/li -lia href=https://github.com/jboss-jdf/jboss-as-quickstart;jboss-as-quickstart (search for -emdeltaspike/em)/a/li +lia href=http://s.apache.org/xA;Fullstack CODI to DeltaSpike @ os890/a/li +lia href=https://github.com/jboss-developer/jboss-wfk-quickstarts;jboss-wfk-quickstarts (search for emdeltaspike/em)/a/li lia href=https://github.com/confess/confess2012_deltaspike;confess2012_deltaspike/a/li /ul /div
svn commit: r907149 - in /websites/staging/deltaspike/trunk/content: ./ security.html
Author: buildbot Date: Mon Apr 28 11:53:28 2014 New Revision: 907149 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/security.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Apr 28 11:53:28 2014 @@ -1 +1 @@ -1590610 +1590613 Modified: websites/staging/deltaspike/trunk/content/security.html == --- websites/staging/deltaspike/trunk/content/security.html (original) +++ websites/staging/deltaspike/trunk/content/security.html Mon Apr 28 11:53:28 2014 @@ -78,13 +78,31 @@ div class=page-title h1DeltaSpike Security Module/h1 /div - div class=toc + pTitle: DeltaSpike Security Module +Notice: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./p +div class=toc ul lia href=#securitybinding-for-class-and-method-invocationsSecurityBinding for class and method invocations/a/li lia href=#integrating-3rd-party-security-frameworksIntegrating 3rd party security frameworks/aul lia href=#secured@Secured/a/li lia href=#accessdecisionvoterAccessDecisionVoter/a/li lia href=#securityviolationSecurityViolation/a/li +lia href=#abstractaccessdecisionvoterAbstractAccessDecisionVoter/a/li lia href=#secured-and-stereotypes-with-custom-meta-data@Secured and Stereotypes with custom Meta-data/a/li /ul /li @@ -279,7 +297,23 @@ It's a basic hook to integrate a custom p[TODO] hint about the changed parameter/s/p h2 id=securityviolationSecurityViolation/h2 pIn case of a detected violation a codeSecurityViolation/code has to be added to the result returned by the codeAccessDecisionVoter/code./p -p[TODO] AbstractAccessDecisionVoter/p +h2 id=abstractaccessdecisionvoterAbstractAccessDecisionVoter/h2 +pYou can also implement the abstract class codeAbstractAccessDecisionVoter/code. This is a convenience class which allows an easier usage:/p +pExample: +:::java +public class CustomAccessDecisionVoter extends AbstractAccessDecisionVoter +{/p +div class=codehiliteprespan class=p@/spanspan class=nOverride/span +span class=nprotected/span span class=nvoid/span span class=ncheckPermission/spanspan class=p(/spanspan class=nAccessDecisionVoterContext/span span class=naccessDecisionVoterContext/spanspan class=p,/span +span class=nSet/spanspan class=olt;/spanspan class=nSecurityViolation/spanspan class=ogt;/span span class=nviolations/spanspan class=p)/span +span class=p{/span +span class=o///span span class=ncheck/span span class=kfor/span span class=nviolations/span +span class=nviolations/spanspan class=p./spanspan class=nadd/spanspan class=p(/spanspan class=nnewSecurityViolation/spanspan class=p(/spanquot;span class=naccess/span span class=nnot/span span class=nallowed/span span class=ndue/span span class=nto/span span class=p.../spanquot;span class=p));/span +span class=p}/span +span class=p}/span +/pre/div + + h2 id=secured-and-stereotypes-with-custom-meta-data@Secured and Stereotypes with custom Meta-data/h2 pIf there are multiple codeAccessDecisionVoter/code and maybe in different constellations, it's easier to provide an expressive CDI stereotypes for it. Later on that also allows to change the behaviour in a central place./p pStereotype support of @Secured:/p @@ -332,9 +366,21 @@ It's a basic hook to integrate a custom h1 id=accessdecisionvotercontextAccessDecisionVoterContext/h1 -p[TODO]/p +pBecause the codeAccessDecisionVoter/code can be chained, codeAccessDecisionVoterContext/code allows to get the current state as well as the results of the security check./p +pThere are several methods that can be useful/p +ul +licodegetState()/code - Exposes the current state : INITIAL, VOTE_IN_PROGRESS, VIOLATION_FOUND, NO_VIOLATION_FOUND/li +licodegetViolations()/code
svn commit: r907151 - in /websites/staging/deltaspike/trunk/content: ./ draft/
Author: buildbot Date: Mon Apr 28 11:58:09 2014 New Revision: 907151 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/I18n.html websites/staging/deltaspike/trunk/content/_features.html websites/staging/deltaspike/trunk/content/_modules.html websites/staging/deltaspike/trunk/content/bean-validation.html websites/staging/deltaspike/trunk/content/build.html websites/staging/deltaspike/trunk/content/community.html websites/staging/deltaspike/trunk/content/configuration.html websites/staging/deltaspike/trunk/content/container-control.html websites/staging/deltaspike/trunk/content/contributors.html websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/data.html websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/download.html websites/staging/deltaspike/trunk/content/draft/backlog.html websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html websites/staging/deltaspike/trunk/content/draft/drafts.html websites/staging/deltaspike/trunk/content/draft/exception_draft.html websites/staging/deltaspike/trunk/content/draft/index2.html websites/staging/deltaspike/trunk/content/draft/se-features-ranking.html websites/staging/deltaspike/trunk/content/examples.html websites/staging/deltaspike/trunk/content/exceptions.html websites/staging/deltaspike/trunk/content/index.html websites/staging/deltaspike/trunk/content/jpa.html websites/staging/deltaspike/trunk/content/jsf.html websites/staging/deltaspike/trunk/content/migration-guide.html websites/staging/deltaspike/trunk/content/new-committer.html websites/staging/deltaspike/trunk/content/news.html websites/staging/deltaspike/trunk/content/project-name.html websites/staging/deltaspike/trunk/content/projectstage.html websites/staging/deltaspike/trunk/content/release-preparation.html websites/staging/deltaspike/trunk/content/scheduler.html websites/staging/deltaspike/trunk/content/security.html websites/staging/deltaspike/trunk/content/servlet.html websites/staging/deltaspike/trunk/content/source.html websites/staging/deltaspike/trunk/content/spi.html websites/staging/deltaspike/trunk/content/steps_for_a_release.html websites/staging/deltaspike/trunk/content/suggested-git-workflows.html websites/staging/deltaspike/trunk/content/support.html websites/staging/deltaspike/trunk/content/supporters.html websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Apr 28 11:58:09 2014 @@ -1 +1 @@ -1590613 +1590616 Modified: websites/staging/deltaspike/trunk/content/I18n.html == --- websites/staging/deltaspike/trunk/content/I18n.html (original) +++ websites/staging/deltaspike/trunk/content/I18n.html Mon Apr 28 11:58:09 2014 @@ -206,7 +206,7 @@ In case of a message-key, the message-re pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer -/div !-- /container -- +/div !-- /.container -- !-- Javascript == -- Modified: websites/staging/deltaspike/trunk/content/_features.html == --- websites/staging/deltaspike/trunk/content/_features.html (original) +++ websites/staging/deltaspike/trunk/content/_features.html Mon Apr 28 11:58:09 2014 @@ -163,7 +163,7 @@ pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer -/div !-- /container -- +/div !-- /.container -- !-- Javascript == -- Modified: websites/staging/deltaspike/trunk/content/_modules.html == --- websites/staging/deltaspike/trunk/content/_modules.html (original) +++ websites/staging/deltaspike/trunk/content/_modules.html Mon Apr 28 11:58:09 2014 @@ -558,7 +558,7 @@ So it's possible to catch an exception i pApache and the Apache feather logo are trademarks of The Apache Software Foundation./p /footer -/div !-- /container -- +/div !-- /.container -- !-- Javascript == -- Modified: websites/staging/deltaspike/trunk/content/bean-validation.html == --- websites/staging/deltaspike/trunk/content/bean-validation.html (original
svn commit: r907476 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Wed Apr 30 16:19:40 2014 New Revision: 907476 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Apr 30 16:19:40 2014 @@ -1 +1 @@ -1590616 +1591386 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Wed Apr 30 16:19:40 2014 @@ -127,7 +127,7 @@ /ul h1 id=first-stepsFirst steps/h1 div class=codehiliteprespan class=ngit/span span class=ncheckout/span span class=o-/spanspan class=nb/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nrelease/span span class=nversion/spanspan class=p]/span -span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nprepare/span +span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span span class=o///spanspan class=nhint/spanspan class=p:/span span class=ndon/spanspan class=o#39;/spanspan class=nt/span span class=nuse/span span class=o-/spanspan class=nDdryRun/spanspan class=p=/spanspan class=ntrue/span span class=o--/span span class=nsince/span span class=nit/span span class=ncan/span span class=kbreak/span span class=nthe/span span class=nnext/span span class=nstep/span span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nperform/span
svn commit: r907486 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Wed Apr 30 17:41:42 2014 New Revision: 907486 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed Apr 30 17:41:42 2014 @@ -1 +1 @@ -1591386 +1591410 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Wed Apr 30 17:41:42 2014 @@ -126,21 +126,22 @@ liCreate release notes and commit them to deltaspike/readme/ (format [ReleaseNotes][version].txt)/li /ul h1 id=first-stepsFirst steps/h1 -div class=codehiliteprespan class=ngit/span span class=ncheckout/span span class=o-/spanspan class=nb/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nrelease/span span class=nversion/spanspan class=p]/span -span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span -span class=o///spanspan class=nhint/spanspan class=p:/span span class=ndon/spanspan class=o#39;/spanspan class=nt/span span class=nuse/span span class=o-/spanspan class=nDdryRun/spanspan class=p=/spanspan class=ntrue/span span class=o--/span span class=nsince/span span class=nit/span span class=ncan/span span class=kbreak/span span class=nthe/span span class=nnext/span span class=nstep/span -span class=nmvn/span span class=nrelease/spanspan class=p:/spanspan class=nperform/span - -span class=o///span!!!span class=ncheck/span span class=nthe/span span class=ncreated/span span class=ncommits/span span class=nincluding/span span class=nuser/spanspan class=o-/spanspan class=nname/span span class=nand/span span class=nemail/span - -span class=o///spanspan class=nlogin/span span class=nto/span span class=nhttps/spanspan class=p:/spanspan class=o///spanspan class=nrepository/spanspan class=p./spanspan class=napache/spanspan class=p./spanspan class=norg/spanspan class=o//span span class=nand/span span class=ngo/span span class=nto/span quot;span class=nStaging/span span class=nRepositories/spanquot; -span class=o///spanspan class=ncheck/span span class=nesp/spanspan class=p./span span class=p../spanspan class=o.//spanspan class=norg/spanspan class=o//spanspan class=napache/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o//spanspan class=p[/spanspan class=nversion/spanspan class=p]/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/spanspan class=o-/spanspan class=nsource/spanspan class=o-/spanspan class=nrelease/spanspan class=p./spanspan class=nzip/span -span class=o///spanspan class=nclose/span span class=nthe/span span class=nrepository/span +div class=codehiliteprespan class=c1//install a version of git which is compatible with the release-plugin (e.g. v1.8.3.2)/span +span class=ngit/span span class=ncheckout/span span class=o-/spanspan class=nb/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=krelease/span span class=nversion/spanspan class=p]/span +span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span +span class=c1//hint: don#39;t use -DdryRun=true -- since it can break the next step/span +span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nperform/span + +span class=c1//!!!check the created commits including user-name and email/span + +span class=c1//login to https://repository.apache.org/ and go to quot;Staging Repositoriesquot;/span +span class=c1//check esp. .../org/apache/deltaspike/deltaspike-project/[version]/deltaspike-project-[version]-source-release.zip/span +span class=c1//close the repository/span -span class=o///spanspan class=npush/span span class=nthe/span span class=nrelease/spanspan class=o-/spanspan class=nbranch/span span class=nand/span span class=ntag/span span class=nto/span span class=na/span 3span class=nrd/span span class=nparty/span span class=ngit/span span class=nrepo/span -span class=ngit/span span class=nremote/span span class=nadd/span span class=nvote/span span class=nhttps/spanspan class=p:/spanspan class=o///spanspan class=ngithub/spanspan class=p./spanspan class=ncom/spanspan class=o//spanspan class=p[/spanspan class=nuser/spanspan class=p]/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o
svn commit: r907979 - in /websites/staging/deltaspike/trunk/content: ./ news.html
Author: buildbot Date: Sun May 4 07:42:28 2014 New Revision: 907979 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/news.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun May 4 07:42:28 2014 @@ -1 +1 @@ -1591450 +1592313 Modified: websites/staging/deltaspike/trunk/content/news.html == --- websites/staging/deltaspike/trunk/content/news.html (original) +++ websites/staging/deltaspike/trunk/content/news.html Sun May 4 07:42:28 2014 @@ -81,6 +81,7 @@ div class=toc ul lia href=#introductionIntroduction/aul +lia href=#7th-release-07-030520147th Release (0.7) (03.05.2014)/a/li lia href=#6th-release-06-200320146th Release (0.6) (20.03.2014)/a/li lia href=#new-committer-14122013New Committer (14.12.2013)/a/li lia href=#5th-release-05-180920135th Release (0.5) (18.09.2013)/a/li @@ -116,6 +117,9 @@ /div hr / h1 id=introductionIntroduction/h1 +h2 id=7th-release-07-030520147th Release (0.7) (03.05.2014)/h2 +pThe Apache DeltaSpike team is pleased to announce the 7th release (v0.7)./p +pThe a href=http://s.apache.org/DS-0.7-RNotes;release notes/a contains 35 JIRA tickets./p h2 id=6th-release-06-200320146th Release (0.6) (20.03.2014)/h2 pThe Apache DeltaSpike team is pleased to announce the 6th release (v0.6)./p pThe a href=http://s.apache.org/DS-0.6-RNotes;release notes/a contains 102 JIRA tickets./p
svn commit: r907984 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Sun May 4 09:08:03 2014 New Revision: 907984 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun May 4 09:08:03 2014 @@ -1 +1 @@ -1592314 +1592328 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Sun May 4 09:08:03 2014 @@ -184,14 +184,14 @@ created./p pstrongHint:/strong In the listings below replace the placeholders for the version with the version of your choice or use:/p div class=codehiliteprespan class=ntlt;propertiesgt;/span -span class=ntlt;deltaspike.versiongt;/span0.5span class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.7span class=ntlt;/deltaspike.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div pOr if you want to very bleeding edge, point to our current snapshot./p div class=codehiliteprespan class=ntlt;propertiesgt;/span -span class=ntlt;deltaspike.versiongt;/span0.6-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span +span class=ntlt;deltaspike.versiongt;/span0.8-SNAPSHOTspan class=ntlt;/deltaspike.versiongt;/span span class=ntlt;/propertiesgt;/span /pre/div
svn commit: r908577 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Sun May 11 14:29:58 2014 New Revision: 908577 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sun May 11 14:29:58 2014 @@ -1 +1 @@ -1592328 +1593796 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Sun May 11 14:29:58 2014 @@ -549,8 +549,9 @@ The resolved bean is a normal CDI bean w /ul h2 id=add-onsAdd-ons/h2 ul -lia href=https://github.com/os890/ds-monitoring-addon;Monitoring- and Auditing Add-on/a/li -lia href=https://github.com/os890/ds-spring-bridge-addon;CDI/Spring Bridge Add-on/a/li +lia href=https://github.com/os890/ds-monitoring-addon;Monitoring- and Auditing/a/li +lia href=https://github.com/os890/ds-spring-bridge-addon;CDI/Spring Bridge/a/li +lia href=https://github.com/os890/ds-disruptor-addon;Fast events via Disruptor/a/li /ul h2 id=project-templatesProject Templates/h2 ul
svn commit: r908723 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Tue May 13 19:22:29 2014 New Revision: 908723 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue May 13 19:22:29 2014 @@ -1 +1 @@ -1593796 +1594336 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Tue May 13 19:22:29 2014 @@ -214,6 +214,7 @@ span class=ngit/span span class=nmerge/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span span class=ngit/span span class=npush/span span class=norigin/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span span class=ngit/span span class=npush/span span class=norigin/span span class=ndeltaspike/spanspan class=o-/spanspan class=nproject/spanspan class=o-/spanspan class=p[/spanspan class=nversion/spanspan class=p]/span +span class=ngit/span span class=npush/span span class=norigin/span span class=nmaster/span /pre/div
svn commit: r908921 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Thu May 15 15:47:50 2014 New Revision: 908921 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu May 15 15:47:50 2014 @@ -1 +1 @@ -1594953 +1594954 Modified: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (original) +++ websites/staging/deltaspike/trunk/content/test-control.html Thu May 15 15:47:50 2014 @@ -324,6 +324,16 @@ span class=kthis/spanspan class=o./spanspan class=nacount/spanspan class=o++;/span span class=o}/span span class=o}/span + +span class=nd@Typed/spanspan class=o()/span span class=c1//exclude it for the cdi type-check/span +span class=kdpublic/span span class=kdclass/span span class=ncMockedApplicationScopedBean/span span class=kdextends/span span class=nApplicationScopedBean/span +span class=o{/span +span class=nd@Override/span +span class=kdpublic/span span class=ktint/span span class=nfgetCount/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=mi14/spanspan class=o;/span +span class=o}/span +span class=o}/span /pre/div
svn commit: r908920 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Thu May 15 15:46:26 2014 New Revision: 908920 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu May 15 15:46:26 2014 @@ -1 +1 @@ -1594951 +1594953 Modified: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (original) +++ websites/staging/deltaspike/trunk/content/test-control.html Thu May 15 15:46:26 2014 @@ -286,8 +286,7 @@ /pre/div -pSince CDI implementations like OpenWebBeans use a lot of optimizations, it's required to handle mocks for application-scoped beans differently - e.g.: -However, codeApplicationMockManager/code can be used for adding all mocks, if they should be active for the lifetime of the CDI-container./p +pSince CDI implementations like OpenWebBeans use a lot of optimizations, it's required to handle mocks for application-scoped beans differently - e.g.:/p div class=codehiliteprespan class=nd@RunWith/spanspan class=o(/spanspan class=nCdiTestRunner/spanspan class=o./spanspan class=naclass/spanspan class=o)/span span class=kdpublic/span span class=kdclass/span span class=ncMockedApplicationScopedBeanTest/span span class=o{/span @@ -328,6 +327,7 @@ However, codeApplicationMockManager/c /pre/div +pHowever, codeApplicationMockManager/code can be used for adding all mocks, if they should be active for the lifetime of the CDI-container./p pIt's also possible to mock qualified beans. Just add the literal-instance(s) as additional parameter(s) - e.g.:/p div class=codehiliteprespan class=nd@RunWith/spanspan class=o(/spanspan class=nCdiTestRunner/spanspan class=o./spanspan class=naclass/spanspan class=o)/span span class=kdpublic/span span class=kdclass/span span class=ncMockedQualifiedBeanTest/span
svn commit: r908919 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Thu May 15 15:36:19 2014 New Revision: 908919 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu May 15 15:36:19 2014 @@ -1 +1 @@ -1594336 +1594951 Modified: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (original) +++ websites/staging/deltaspike/trunk/content/test-control.html Thu May 15 15:36:19 2014 @@ -93,6 +93,7 @@ lia href=#optional-configOptional Config/a/li lia href=#hintsHints/a/li lia href=#optional-integrationsOptional Integrations/aul +lia href=#mock-frameworksMock Frameworks/a/li lia href=#jsf-via-myfaces-testJSF (via MyFaces-Test)/a/li /ul /li @@ -213,6 +214,152 @@ pDon't forget to add a beans.xml in the test-module (e.g. src/test/resources/META-INF/beans.xml)./p pIf you are using OpenWebBeans as CDI implementation and you need to test EJBs as well, you can use deltaspike-cdictrl-openejb + org.apache.openejb:openejb-core (instead of deltaspike-cdictrl-owb)./p h1 id=optional-integrationsOptional Integrations/h1 +h2 id=mock-frameworksMock Frameworks/h2 +pWith v0.8+ it's possible to mock CDI-Beans. Usually @Exclude (+ project-stage) is enough, however, for some cases mocked beans might be easier. Therefore it's possible to create (mock-)instances manually or via a mocking framework and add them e.g. via codeDynamicMockManager/code./p +pIf you need dependency-injection in the mocked instances, you can use codeBeanProvider.injectFields(myMockedBean);/code./p +div class=codehiliteprespan class=nd@RunWith/spanspan class=o(/spanspan class=nCdiTestRunner/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncMockedRequestScopedBeanTest/span +span class=o{/span +span class=nd@Inject/span +span class=kdprivate/span span class=nRequestScopedBean/span span class=nrequestScopedBean/spanspan class=o;/span + +span class=nd@Inject/span +span class=kdprivate/span span class=nDynamicMockManager/span span class=nmockManager/spanspan class=o;/span + +span class=nd@Test/span +span class=kdpublic/span span class=ktvoid/span span class=nfmanualMock/spanspan class=o()/span +span class=o{/span +span class=nmockManager/spanspan class=o./spanspan class=naaddMock/spanspan class=o(/spanspan class=knew/span span class=nRequestScopedBean/spanspan class=o()/span span class=o{/span +span class=nd@Override/span +span class=kdpublic/span span class=ktint/span span class=nfgetCount/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=mi7/spanspan class=o;/span +span class=o}/span +span class=o});/span + +span class=nAssert/spanspan class=o./spanspan class=naassertEquals/spanspan class=o(/spanspan class=mi7/spanspan class=o,/span span class=nrequestScopedBean/spanspan class=o./spanspan class=nagetCount/spanspan class=o());/span +span class=nrequestScopedBean/spanspan class=o./spanspan class=naincreaseCount/spanspan class=o();/span +span class=nAssert/spanspan class=o./spanspan class=naassertEquals/spanspan class=o(/spanspan class=mi7/spanspan class=o,/span span class=nrequestScopedBean/spanspan class=o./spanspan class=nagetCount/spanspan class=o());/span +span class=o}/span +span class=o}/span + +span class=nd@RequestScoped/span +span class=kdpublic/span span class=kdclass/span span class=ncRequestScopedBean/span +span class=o{/span +span class=kdprivate/span span class=ktint/span span class=ncount/span span class=o=/span span class=mi0/spanspan class=o;/span + +span class=kdpublic/span span class=ktint/span span class=nfgetCount/spanspan class=o()/span +span class=o{/span +span class=kreturn/span span class=ncount/spanspan class=o;/span +span class=o}/span + +span class=kdpublic/span span class=ktvoid/span span class=nfincreaseCount/spanspan class=o()/span +span class=o{/span +span class=kthis/spanspan class=o./spanspan class=nacount/spanspan class=o++;/span +span class=o}/span +span class=o}/span +/pre/div + + +pUsing a mocking framework makes no difference for adding the mock. E.g. via Mockito:/p +div class=codehiliteprespan class=nd@RunWith/spanspan class=o(/spanspan class=nCdiTestRunner/spanspan class=o./spanspan class=naclass/spanspan class=o)/span +span class=kdpublic/span span class=kdclass/span span class=ncMockitoMockedRequestScopedBeanTest/span +span class=o{/span +span class=nd@Inject
svn commit: r909076 - in /websites/staging/deltaspike/trunk/content: ./ partial-bean.html
Author: buildbot Date: Sat May 17 12:45:54 2014 New Revision: 909076 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/partial-bean.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat May 17 12:45:54 2014 @@ -1 +1 @@ -1595460 +1595462 Modified: websites/staging/deltaspike/trunk/content/partial-bean.html == --- websites/staging/deltaspike/trunk/content/partial-bean.html (original) +++ websites/staging/deltaspike/trunk/content/partial-bean.html Sat May 17 12:45:54 2014 @@ -83,7 +83,7 @@ /div hr / pPartial beans allow you to implement a generic handler to replace manual implementations of interfaces (or abstract classes)./p -p@PartialBeanBinding is the binding-annotation for creating a custom interface (/abstract class) to generic handler binding./p +pcode@PartialBeanBinding/code is the binding-annotation for creating a custom interface (/abstract class) to generic handler binding./p div class=codehiliteprespan class=nd@PartialBeanBinding/span span class=nd@Retention/spanspan class=o(/spanspan class=nRUNTIME/spanspan class=o)/span
svn commit: r909074 - in /websites/staging/deltaspike/trunk/content: ./ partial-bean.html
Author: buildbot Date: Sat May 17 12:45:34 2014 New Revision: 909074 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/partial-bean.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat May 17 12:45:34 2014 @@ -1 +1 @@ -1595454 +1595460 Modified: websites/staging/deltaspike/trunk/content/partial-bean.html == --- websites/staging/deltaspike/trunk/content/partial-bean.html (original) +++ websites/staging/deltaspike/trunk/content/partial-bean.html Sat May 17 12:45:34 2014 @@ -99,7 +99,7 @@ span class=nd@MyPartialBeanBinding/span span class=nd@Dependent/span -span class=kdpublic/span span class=kdclass/span span class=ncTestPartialBeanHandler/span span class=kdimplements/span span class=njava/spanspan class=o./spanspan class=nalang/spanspan class=o./spanspan class=nareflect/spanspan class=o./spanspan class=naInvocationHandler/span +span class=kdpublic/span span class=kdclass/span span class=ncMyPartialBeanHandler/span span class=kdimplements/span span class=njava/spanspan class=o./spanspan class=nalang/spanspan class=o./spanspan class=nareflect/spanspan class=o./spanspan class=naInvocationHandler/span span class=o{/span span class=kdpublic/span span class=nObject/span span class=nfinvoke/spanspan class=o(/spanspan class=nObject/span span class=nproxy/spanspan class=o,/span span class=nMethod/span span class=nmethod/spanspan class=o,/span span class=nObject/spanspan class=o[]/span span class=nargs/spanspan class=o)/span span class=kdthrows/span span class=nThrowable/span span class=o{/span
svn commit: r909071 - in /websites/staging/deltaspike/trunk/content: ./ partial-bean.html
Author: buildbot Date: Sat May 17 12:29:53 2014 New Revision: 909071 Log: Staging update by buildbot for deltaspike Added: websites/staging/deltaspike/trunk/content/partial-bean.html Modified: websites/staging/deltaspike/trunk/content/ (props changed) Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat May 17 12:29:53 2014 @@ -1 +1 @@ -1595445 +1595454 Added: websites/staging/deltaspike/trunk/content/partial-bean.html == --- websites/staging/deltaspike/trunk/content/partial-bean.html (added) +++ websites/staging/deltaspike/trunk/content/partial-bean.html Sat May 17 12:29:53 2014 @@ -0,0 +1,147 @@ +!DOCTYPE html +html lang=en +head +meta http-equiv=Content-Type content=text/html; charset=UTF-8 +meta charset=utf-8 +meta name=viewport content=width=device-width, initial-scale=1.0 +meta name=description content=deltaspike-generate-pages +meta name=author content=chm + +titleApache DeltaSpike - /title + + + + +!-- 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 quot;Licensequot;); 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 quot;AS ISquot; 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. -- + +!-- Styles -- + +link href=./resources/css/bootstrap.css rel=stylesheet +!--link href=./resources/css/prettify.css rel=stylesheet / -- +link href=./resources/css/codehilite.css rel=stylesheet / +link href=./resources/css/bootstrap-responsive.css rel=stylesheet +style type=text/css +body { +padding-top: 60px; +padding-bottom: 40px; +} +/style + script type=text/javascript + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36103647-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + /script +/head + +body + +div class=navbar navbar-fixed-top +div class=navbar-inner +div class=container +a class=btn btn-navbar data-toggle=collapse data-target=.nav-collapse +span class=icon-bar/span +span class=icon-bar/span +span class=icon-bar/span +/a +a class=brand href=index.htmlimg src=./resources/images/deltaspike-logo-medium.png//a +div class=nav-collapse +ul class=nav +li class=activea href=./index.htmlHome/a/li +lia href=./documentation.htmlDocumentation/a/li +lia href=./source.htmlSource/a/li +!-- lia href=./download.htmlDownload/a/li -- +lia href=./community.htmlCommunity/a/li +!-- lia href=./support.htmlSupport/a/li -- +lia href=./news.htmlNews/a/li +lia href=./migration-guide.htmlMigration/a/li +/ul +/div!--/.nav-collapse -- +form id=search-form action=http://www.google.com/search; method=get class=navbar-search pull-right +input value=deltaspike.apache.org name=sitesearch type=hidden/ +input class=search-query name=q id=query type=text / +/form +/div +/div +/div + +div class=container + div class=row + div class=span12 + div class=page-title +h1/h1 + /div + div class=toc +ul/ul +/div +hr / +pPartial beans allow you to implement a generic handler to replace manual implementations of interfaces (or abstract classes)./p +p@PartialBeanBinding is the binding-annotation for creating a custom interface (/abstract class) to generic handler binding./p +div class=codehiliteprespan class=nd@PartialBeanBinding/span
svn commit: r909080 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html
Author: buildbot Date: Sat May 17 12:49:34 2014 New Revision: 909080 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat May 17 12:49:34 2014 @@ -1 +1 @@ -1595464 +1595465 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Sat May 17 12:49:34 2014 @@ -143,6 +143,7 @@ Notice:Licensed to the Apache Softwa lia href=#container-control-optionalContainer Control (optional)/a/li lia href=#bean-validation-optionalBean Validation (optional)/a/li lia href=#servlet-optionalServlet (optional)/a/li +lia href=#partial-bean-optionalPartial-Bean (optional)/a/li lia href=#data-optionalData (optional)/a/li lia href=#test-control-optionalTest-Control (optional)/a/li lia href=#scheduler-optionalScheduler (optional)/a/li @@ -522,6 +523,8 @@ The resolved bean is a normal CDI bean w liPropagation of servlet events to the CDI event bus. /li /ul pa class=btn href=servlet.htmlView details »/a/p +h2 id=partial-bean-optionalPartial-Bean (optional)/h2 +pa class=btn href=partial-bean.htmlView details »/a/p h2 id=data-optionalData (optional)/h2 pDefinition : The DeltaSpike Data module provides enhanced JPA experience with declarative queries, reducing boilerplate to a minimum./p pFeatures : /p
svn commit: r909407 - in /websites/staging/deltaspike/trunk/content: ./ news.html
Author: buildbot Date: Tue May 20 11:29:01 2014 New Revision: 909407 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/news.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue May 20 11:29:01 2014 @@ -1 +1 @@ -1595465 +1596203 Modified: websites/staging/deltaspike/trunk/content/news.html == --- websites/staging/deltaspike/trunk/content/news.html (original) +++ websites/staging/deltaspike/trunk/content/news.html Tue May 20 11:29:01 2014 @@ -81,6 +81,7 @@ div class=toc ul lia href=#introductionIntroduction/aul +lia href=#new-committer-18052014New Committer (18.05.2014)/a/li lia href=#7th-release-07-030520147th Release (0.7) (03.05.2014)/a/li lia href=#6th-release-06-200320146th Release (0.6) (20.03.2014)/a/li lia href=#new-committer-14122013New Committer (14.12.2013)/a/li @@ -117,6 +118,8 @@ /div hr / h1 id=introductionIntroduction/h1 +h2 id=new-committer-18052014New Committer (18.05.2014)/h2 +pRafael Benevides joined our development community./p h2 id=7th-release-07-030520147th Release (0.7) (03.05.2014)/h2 pThe Apache DeltaSpike team is pleased to announce the 7th release (v0.7)./p pThe a href=http://s.apache.org/DS-0.7-RNotes;release notes/a contains 35 JIRA tickets./p
svn commit: r909485 - in /websites/staging/deltaspike/trunk/content: ./ test-control.html
Author: buildbot Date: Wed May 21 10:22:22 2014 New Revision: 909485 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Wed May 21 10:22:22 2014 @@ -1 +1 @@ -1596203 +1596531 Modified: websites/staging/deltaspike/trunk/content/test-control.html == --- websites/staging/deltaspike/trunk/content/test-control.html (original) +++ websites/staging/deltaspike/trunk/content/test-control.html Wed May 21 10:22:22 2014 @@ -371,11 +371,14 @@ pIn some cases it's needed to use code@javax.enterprise.inject.Typed/code. Mocking such typed beans can result in an codeAmbiguousResolutionException/code. Therefore it's needed to exclude the mocked implementation via code@Exclude/code or code@Typed()/code (or a parametrized constructor) and specify the target-type via code@TypedMock/code./p h2 id=jsf-via-myfaces-testJSF (via MyFaces-Test)/h2 -padd:/p -porg.apache.deltaspike.testcontrol.impl.jsf.MockedJsf2TestContainer -or -org.apache.deltaspike.testcontrol.impl.jsf.MockedJsfTestContainerAdapter/p -pto/p +padd on of/p +ul +liorg.apache.deltaspike.testcontrol.impl.jsf.MockedJsf2TestContainer/li +liorg.apache.deltaspike.testcontrol.impl.jsf.MockedJsfTestContainerAdapter/li +liorg.apache.deltaspike.testcontrol.impl.jsf.MyFacesContainerAdapter/li +liorg.apache.deltaspike.testcontrol.impl.jsf.MyFacesContainerPerTestMethodAdapter/li +/ul +pas content to/p p/META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer/p p(in your config-folder for tests e.g.: test/resources)/p h1 id=mixed-testsMixed Tests/h1
svn commit: r910000 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Mon May 26 13:32:50 2014 New Revision: 91 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon May 26 13:32:50 2014 @@ -1 +1 @@ -1596531 +1597580 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Mon May 26 13:32:50 2014 @@ -128,7 +128,7 @@ h1 id=first-stepsFirst steps/h1 div class=codehiliteprespan class=c1//install a version of git which is compatible with the release-plugin (e.g. v1.8.3.2)/span span class=ngit/span span class=ncheckout/span span class=o-/spanspan class=nb/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=krelease/span span class=nversion/spanspan class=p]/span -span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span +span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span span class=o-/spanspan class=nDreleaseProfiles/spanspan class=o=/spanspan class=ndistribution/span span class=c1//hint: don#39;t use -DdryRun=true -- since it can break the next step/span span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nperform/span
svn commit: r910002 - in /websites/staging/deltaspike/trunk/content: ./ steps_for_a_release.html
Author: buildbot Date: Mon May 26 14:06:48 2014 New Revision: 910002 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/steps_for_a_release.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon May 26 14:06:48 2014 @@ -1 +1 @@ -1597580 +1597589 Modified: websites/staging/deltaspike/trunk/content/steps_for_a_release.html == --- websites/staging/deltaspike/trunk/content/steps_for_a_release.html (original) +++ websites/staging/deltaspike/trunk/content/steps_for_a_release.html Mon May 26 14:06:48 2014 @@ -128,7 +128,9 @@ h1 id=first-stepsFirst steps/h1 div class=codehiliteprespan class=c1//install a version of git which is compatible with the release-plugin (e.g. v1.8.3.2)/span span class=ngit/span span class=ncheckout/span span class=o-/spanspan class=nb/span span class=ndeltaspike/spanspan class=o-/spanspan class=p[/spanspan class=krelease/span span class=nversion/spanspan class=p]/span -span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span span class=o-/spanspan class=nDreleaseProfiles/spanspan class=o=/spanspan class=ndistribution/span +span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nprepare/span span class=o-/spanspan class=nPdistribution/span +span class=c1//or if the assemblies aren#39;t included: mvn release:prepare -Pdistribution -DreleaseProfiles=distribution/span + span class=c1//hint: don#39;t use -DdryRun=true -- since it can break the next step/span span class=nmvn/span span class=krelease/spanspan class=o:/spanspan class=nperform/span
svn commit: r910124 - in /websites/staging/deltaspike/trunk/content: ./ data.html
Author: buildbot Date: Tue May 27 16:37:58 2014 New Revision: 910124 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/data.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue May 27 16:37:58 2014 @@ -1 +1 @@ -1597589 +1597819 Modified: websites/staging/deltaspike/trunk/content/data.html == --- websites/staging/deltaspike/trunk/content/data.html (original) +++ websites/staging/deltaspike/trunk/content/data.html Tue May 27 16:37:58 2014 @@ -94,6 +94,7 @@ /ul /li lia href=#using-multiple-entitymanagerUsing Multiple EntityManager/a/li +lia href=#other-entitymanager-methodsOther EntityManager methods/a/li /ul /li lia href=#query-method-expressionsQuery Method Expressions/aul @@ -153,7 +154,7 @@ specific entities./p pThe DeltaSpike Data module is intended to help you simplifying your repository layer. While you will have complex queries in a repository requiring your full attention, there will also be many simple ones often requiring boilerplate code and clutter. -This is where the DeltaSpike data module will help you keeping your repository lean so you +This is where the DeltaSpike Data module will help you keeping your repository lean so you can focus on the though things./p pThe code sample below will give you a quick overview on the common usage scenarios of the data module:/p div class=codehiliteprespan class=nd@Repository/span @@ -183,18 +184,18 @@ A client can declare a dependency to the features are outlines in the following chapters./p h1 id=installationInstallation/h1 h2 id=prerequisitesPrerequisites/h2 -pThe simplest way using the DeltaSpike data module is to run your application in a Java EE container +pThe simplest way using the DeltaSpike Data module is to run your application in a Java EE container supporting at least the Java EE 6 Web Profile. Other configurations like running it inside Tomcat or even a Java SE application should be possible - you need to include a JPA provider as well as a CDI container to your application manually./p pAlso note that in order to use abstract classes as repositories, this currently requires the presence -of the http://www.javassist.org[javassist] library in your classpath./p +of the a href=http://www.javassist.org;javassist/a library in your classpath./p pstrongCAUTION:/strong/p blockquote -pUsing DeltaSpike data in an EAR deployment is currently restricted to annotation-based entities./p +pUsing DeltaSpike Data in an EAR deployment is currently restricted to annotation-based entities./p /blockquote h2 id=maven-dependency-configurationMaven Dependency Configuration/h2 -pIf you are using Maven as your build tool, you can add the following dependencies to your +pom.xml+ +pIf you are using Maven as your build tool, you can add the following dependencies to your codepom.xml/code file to include the DeltaSpike data module:/p div class=codehiliteprespan class=ntlt;dependencygt;/span span class=ntlt;groupIdgt;/spanorg.apache.deltaspike.modulesspan class=ntlt;/groupIdgt;/span @@ -220,7 +221,7 @@ substitution so you can centrally manage pIncluding the API at compile time and only include the implementation at runtime protects you from inadvertantly depending on an implementation class./p h2 id=setup-your-applicationSetup your application/h2 -pDeltaSpike data requires an codeEntityManager/code exposed via a CDI producer - which is common practice +pDeltaSpike Data requires an codeEntityManager/code exposed via a CDI producer - which is common practice in Java EE 6 applications./p div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncEntityManagerProducer/span span class=o{/span @@ -262,7 +263,7 @@ in a following section./p pYou're now ready to use repositories in your application!/p h1 id=core-conceptsCore Concepts/h1 h2 id=repositoriesRepositories/h2 -pWith the DeltaSpike data module, it is possible to make a repository out of basically any +pWith the DeltaSpike Data module, it is possible to make a repository out of basically any abstract class or interface (using a concrete class will work too, but you won't be able to use most of the CDI extension features). All that is required is to mark the type as such with a simple annotation:/p @@ -282,7 +283,7 @@ simple annotation:/p Any method defined on the repository will be processed by the framework. The annotation does not require to set the entity class (we'll see later why) but if there are just plain classes or interfaces this is the only way to tell the framework what entity the repository relates to. -In order to simplify this, DeltaSpike data provides several base
svn commit: r910178 - in /websites/staging/deltaspike/trunk/content: ./ build.html documentation.html draft/index2.html index.html supporters.html
Author: buildbot Date: Tue May 27 23:27:48 2014 New Revision: 910178 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/build.html websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/draft/index2.html websites/staging/deltaspike/trunk/content/index.html websites/staging/deltaspike/trunk/content/supporters.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue May 27 23:27:48 2014 @@ -1 +1 @@ -1597819 +1597900 Modified: websites/staging/deltaspike/trunk/content/build.html == --- websites/staging/deltaspike/trunk/content/build.html (original) +++ websites/staging/deltaspike/trunk/content/build.html Tue May 27 23:27:48 2014 @@ -83,15 +83,14 @@ lia href=#introductionIntroduction/aul lia href=#full-buildFull build/a/li lia href=#build-with-testBuild with test/a/li -lia href=#build-exampleBuild example/a/li lia href=#integration-testsIntegration Tests/aul lia href=#tomeeTomEE/a/li -lia href=#jbossas7JBossAS7/aul +lia href=#jboss-as7JBoss AS7/aul lia href=#without-existing-as7Without existing AS7/a/li lia href=#with-existing-as7With existing AS7/a/li /ul /li -lia href=#jboss-wildfly8JBoss WildFly8/aul +lia href=#wildfly-8WildFly 8/aul lia href=#without-existing-wf8Without existing WF8/a/li lia href=#with-existing-wf8With existing WF8/a/li /ul @@ -129,13 +128,6 @@ /pre/div -h2 id=build-exampleBuild example/h2 -div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPexamples/span span class=o-/spanspan class=nPOWB/span span class=o///spanspan class=nbuild/span span class=neverything/span span class=nincluding/span span class=nthe/span span class=nexamples/span span class=nwith/span span class=nOpenWebBeans/span -span class=nor/span -span class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPexamples/span span class=o-/spanspan class=nPWeld/span span class=o///spanspan class=nbuild/span span class=neverything/span span class=nincluding/span span class=nthe/span span class=nexamples/span span class=nwith/span span class=nWeld/span -/pre/div - - h2 id=integration-testsIntegration Tests/h2 pWith the unpack Maven-Plugin all Arquillian-Tests get copied to the integration-test module. Together with the special integration-tests they get executed via a remote container. Currently we have configurations for the following containers./p h3 id=tomeeTomEE/h3 @@ -144,21 +136,21 @@ /pre/div -h3 id=jbossas7JBossAS7/h3 +h3 id=jboss-as7JBoss AS7/h3 h4 id=without-existing-as7Without existing AS7/h4 -pstrongExecuting the Arquillian tests with JBoss-AS7 (without AS7 installation)/strong/p +pstrongExecuting the Arquillian tests with JBoss AS7 (without AS7 installation)/strong/p div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPjbossas/spanspan class=o-/spanspan class=nbuild/spanspan class=o-/spanspan class=nmanaged/spanspan class=o-/span7 /pre/div h4 id=with-existing-as7With existing AS7/h4 pSet JBoss_HOME/p -pstrongExecuting the Arquillian tests with JBoss-AS7 (AS7 installation required)/strong/p +pstrongExecuting the Arquillian tests with JBoss AS7 (AS7 installation required)/strong/p div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPjbossas/spanspan class=o-/spanspan class=nmanaged/spanspan class=o-/span7 /pre/div -h3 id=jboss-wildfly8JBoss WildFly8/h3 +h3 id=wildfly-8WildFly 8/h3 h4 id=without-existing-wf8Without existing WF8/h4 pstrongExecuting the Arquillian tests with JBoss-WF8 (without WF8 installation)/strong/p div class=codehiliteprespan class=nmvn/span span class=nclean/span span class=ninstall/span span class=o-/spanspan class=nPwildfly/spanspan class=o-/spanspan class=nbuild/spanspan class=o-/spanspan class=nmanaged/span Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Tue May 27 23:27:48 2014 @@ -169,7 +169,7 @@ not provided out of the box by the CDI s liProvide new scopes (Window Scope, ...),/li liManage messages and configurations/li /ul -pThe project is currently tested on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java Web containers like Apache TomEE or JavaEE, JBoss-AS7, Oracle GlassFish 3.1
svn commit: r911421 - in /websites/staging/deltaspike/trunk/content: ./ documentation.html examples.html
Author: buildbot Date: Thu Jun 5 10:36:38 2014 New Revision: 911421 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/examples.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Jun 5 10:36:38 2014 @@ -1 +1 @@ -1597900 +1600586 Modified: websites/staging/deltaspike/trunk/content/documentation.html == --- websites/staging/deltaspike/trunk/content/documentation.html (original) +++ websites/staging/deltaspike/trunk/content/documentation.html Thu Jun 5 10:36:38 2014 @@ -154,6 +154,7 @@ Notice:Licensed to the Apache Softwa lia href=#blogsBlogs/a/li lia href=#add-onsAdd-ons/a/li lia href=#project-templatesProject Templates/a/li +lia href=#examplesExamples/a/li /ul /li /ul @@ -562,6 +563,8 @@ The resolved bean is a normal CDI bean w lia href=https://github.com/os890/javaweb-cdi-ds-project-template;JSF + CDI + DS/a/li lia href=https://github.com/os890/javaee-cdi-ejb-ds-project-template;EJB + CDI + DS/a/li /ul +h2 id=examplesExamples/h2 +pSee a href=examples.html#ExternalExternal Examples/a/p /div /div Modified: websites/staging/deltaspike/trunk/content/examples.html == --- websites/staging/deltaspike/trunk/content/examples.html (original) +++ websites/staging/deltaspike/trunk/content/examples.html Thu Jun 5 10:36:38 2014 @@ -94,6 +94,7 @@ (the shown use-cases also work with emWeld/em - only the bootstrapping of the container is different, because this example is based on Java-SE and therefore outside of an Java-EE(6+) application server./p h1 id=externalExternal/h1 ul +lia href=https://github.com/os890/ee6-ds-demo;Fullstack EE6+ with DeltaSpike @ os890/a/li lia href=http://s.apache.org/xA;Fullstack CODI to DeltaSpike @ os890/a/li lia href=https://github.com/jboss-developer/jboss-wfk-quickstarts;jboss-wfk-quickstarts (search for emdeltaspike/em)/a/li lia href=https://github.com/confess/confess2012_deltaspike;confess2012_deltaspike/a/li
svn commit: r911423 - in /websites/staging/deltaspike/trunk/content: ./ examples.html
Author: buildbot Date: Thu Jun 5 10:53:01 2014 New Revision: 911423 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/examples.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Jun 5 10:53:01 2014 @@ -1 +1 @@ -1600586 +1600591 Modified: websites/staging/deltaspike/trunk/content/examples.html == --- websites/staging/deltaspike/trunk/content/examples.html (original) +++ websites/staging/deltaspike/trunk/content/examples.html Thu Jun 5 10:53:01 2014 @@ -94,7 +94,7 @@ (the shown use-cases also work with emWeld/em - only the bootstrapping of the container is different, because this example is based on Java-SE and therefore outside of an Java-EE(6+) application server./p h1 id=externalExternal/h1 ul -lia href=https://github.com/os890/ee6-ds-demo;Fullstack EE6+ with DeltaSpike @ os890/a/li +lia href=https://github.com/os890/ee6-ds-demo;Fullstack EE6+ with DeltaSpike @ os890 (tested with EE6 and EE7)/a/li lia href=http://s.apache.org/xA;Fullstack CODI to DeltaSpike @ os890/a/li lia href=https://github.com/jboss-developer/jboss-wfk-quickstarts;jboss-wfk-quickstarts (search for emdeltaspike/em)/a/li lia href=https://github.com/confess/confess2012_deltaspike;confess2012_deltaspike/a/li
svn commit: r911642 - in /websites/staging/deltaspike/trunk/content: ./ draft/
Author: buildbot Date: Fri Jun 6 20:46:21 2014 New Revision: 911642 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/I18n.html websites/staging/deltaspike/trunk/content/_features.html websites/staging/deltaspike/trunk/content/_modules.html websites/staging/deltaspike/trunk/content/bean-validation.html websites/staging/deltaspike/trunk/content/build.html websites/staging/deltaspike/trunk/content/community.html websites/staging/deltaspike/trunk/content/configuration.html websites/staging/deltaspike/trunk/content/container-control.html websites/staging/deltaspike/trunk/content/contributors.html websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/data.html websites/staging/deltaspike/trunk/content/documentation.html websites/staging/deltaspike/trunk/content/download.html websites/staging/deltaspike/trunk/content/draft/backlog.html websites/staging/deltaspike/trunk/content/draft/cdi-1.1-proposals.html websites/staging/deltaspike/trunk/content/draft/drafts.html websites/staging/deltaspike/trunk/content/draft/exception_draft.html websites/staging/deltaspike/trunk/content/draft/index2.html websites/staging/deltaspike/trunk/content/draft/se-features-ranking.html websites/staging/deltaspike/trunk/content/examples.html websites/staging/deltaspike/trunk/content/exceptions.html websites/staging/deltaspike/trunk/content/index.html websites/staging/deltaspike/trunk/content/jpa.html websites/staging/deltaspike/trunk/content/jsf.html websites/staging/deltaspike/trunk/content/migration-guide.html websites/staging/deltaspike/trunk/content/new-committer.html websites/staging/deltaspike/trunk/content/news.html websites/staging/deltaspike/trunk/content/partial-bean.html websites/staging/deltaspike/trunk/content/project-name.html websites/staging/deltaspike/trunk/content/projectstage.html websites/staging/deltaspike/trunk/content/release-preparation.html websites/staging/deltaspike/trunk/content/scheduler.html websites/staging/deltaspike/trunk/content/security.html websites/staging/deltaspike/trunk/content/servlet.html websites/staging/deltaspike/trunk/content/source.html websites/staging/deltaspike/trunk/content/spi.html websites/staging/deltaspike/trunk/content/steps_for_a_release.html websites/staging/deltaspike/trunk/content/suggested-git-workflows.html websites/staging/deltaspike/trunk/content/support.html websites/staging/deltaspike/trunk/content/supporters.html websites/staging/deltaspike/trunk/content/test-control.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Fri Jun 6 20:46:21 2014 @@ -1 +1 @@ -1600591 +1601006 Modified: websites/staging/deltaspike/trunk/content/I18n.html == --- websites/staging/deltaspike/trunk/content/I18n.html (original) +++ websites/staging/deltaspike/trunk/content/I18n.html Fri Jun 6 20:46:21 2014 @@ -226,6 +226,5 @@ In case of a message-key, the message-re script src=./resources/js/bootstrap-collapse.js/script script src=./resources/js/bootstrap-carousel.js/script script src=./resources/js/bootstrap-typeahead.js/script - /body /html Modified: websites/staging/deltaspike/trunk/content/_features.html == --- websites/staging/deltaspike/trunk/content/_features.html (original) +++ websites/staging/deltaspike/trunk/content/_features.html Fri Jun 6 20:46:21 2014 @@ -183,6 +183,5 @@ script src=./resources/js/bootstrap-collapse.js/script script src=./resources/js/bootstrap-carousel.js/script script src=./resources/js/bootstrap-typeahead.js/script - /body /html Modified: websites/staging/deltaspike/trunk/content/_modules.html == --- websites/staging/deltaspike/trunk/content/_modules.html (original) +++ websites/staging/deltaspike/trunk/content/_modules.html Fri Jun 6 20:46:21 2014 @@ -578,6 +578,5 @@ So it's possible to catch an exception i script src=./resources/js/bootstrap-collapse.js/script script src=./resources/js/bootstrap-carousel.js/script script src=./resources/js/bootstrap-typeahead.js/script - /body /html Modified: websites/staging/deltaspike/trunk/content/bean-validation.html == --- websites/staging/deltaspike/trunk/content/bean-validation.html (original) +++ websites/staging/deltaspike/trunk/content/bean-validation.html Fri Jun 6 20:46:21 2014 @@ -138,6 +138,5
svn commit: r912345 - in /websites/staging/deltaspike/trunk/content: ./ core.html jsf.html
Author: buildbot Date: Thu Jun 12 14:51:49 2014 New Revision: 912345 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/jsf.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Jun 12 14:51:49 2014 @@ -1 +1 @@ -1601006 +1602186 Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Thu Jun 12 14:51:49 2014 @@ -401,7 +401,7 @@ For such cases a custom ExpressionInterp span class=norg/spanspan class=o//spanspan class=napache/spanspan class=o//spanspan class=ndeltaspike/spanspan class=o//spanspan class=nexample/spanspan class=o//spanspan class=nmessage/spanspan class=o//spanspan class=nSimpleMessage_de/spanspan class=o./spanspan class=naproperties/span span class=o.../span -span class=c1//content (as usual in message bundle files:/span +span class=c1//content (as usual in message bundle files):/span span class=nwelcome_to_deltaspike/spanspan class=o=/spanspan class=nWelcome/span span class=nto/span span class=nDeltaSpike/span /pre/div Modified: websites/staging/deltaspike/trunk/content/jsf.html == --- websites/staging/deltaspike/trunk/content/jsf.html (original) +++ websites/staging/deltaspike/trunk/content/jsf.html Thu Jun 12 14:51:49 2014 @@ -129,6 +129,7 @@ lia href=#jsf-20-scopesJSF 2.0 Scopes/a/li /ul /li +lia href=#integration-with-deltaspike-type-safe-messagesIntegration with DeltaSpike type-safe messages/a/li lia href=#type-safe-view-configsType-safe View-Configs/aul lia href=#intro_1Intro/a/li lia href=#motivationMotivation/a/li @@ -206,7 +207,7 @@ h1 id=multi-window-handlingMulti-Window Handling/h1 h2 id=introIntro/h2 h3 id=historic-considerationsHistoric Considerations/h3 -pUntil the end of the 1990s web browsers are usually single threaded and only had one window. But in the last years browsers supporting multiple windows or even tab became the standard. Since those days lots of efforts went into uniquely identifying a single browser window on the server side. Sadly browser windows still lack of a native windowId, thus maintaining web application data in @SessionScoped backing beans is still used in most of the cases. /p +pUntil the end of the 1990s web browsers are usually single threaded and only had one window. But in the last years browsers supporting multiple windows or even tab became the standard. Since those days lots of efforts went into uniquely identifying a single browser window on the server side. Sadly browser windows still lack of a native windowId, thus maintaining web application data in @SessionScoped backing beans is still used in most of the cases./p h3 id=how-jsf-2-changed-the-worldHow JSF-2 changed the world/h3 pThe MyFaces Orchestra community did a good summary about the various ways to handle multiple window support in JSF Applications. Those findings are still valid and up to date, but the environmental conditions have changed slightly since then. br / @@ -260,7 +261,7 @@ If it's not matching, the view will be r /ul h5 id=disadvantage_1Disadvantage/h5 ul -liIt could happen that 2 tabs will share the same windowId for 1 request because the codeLAZY/code mode will check lazily, after rendering the view, if the windowId matches the codewindow.name/code. Therefore it could happen that @ViewAccessScoped or other scopes will unintentionally be destroyed. /li +liIt could happen that 2 tabs will share the same windowId for 1 request because the codeLAZY/code mode will check lazily, after rendering the view, if the windowId matches the codewindow.name/code. Therefore it could happen that @ViewAccessScoped or other scopes will unintentionally be destroyed./li /ul h4 id=workflow-exampleWorkflow example/h4 h5 id=first-get-request-with-windowidFirst GET request with windowId/h5 @@ -388,6 +389,59 @@ The best way, to apply it for all views, /ul pFurthermore, the managed-bean annotation (javax.faces.bean.ManagedBean) is mapped to @Named from CDI./p pAll these annotations are mapped automatically. So you won't face issues, if you import a JSF 2 annotation instead of the corresponding CDI annotation./p +h1 id=integration-with-deltaspike-type-safe-messagesIntegration with DeltaSpike type-safe messages/h1 +pYou can use a href=core.html#messages-i18nDeltaSpike type-safe messages/a with JSF to provide i18n messages and test to an JSF appplicaton./p +pJSF module is also capable to use messages provided through message-bundle
svn commit: r912359 - in /websites/staging/deltaspike/trunk/content: ./ core.html spi.html
Author: buildbot Date: Thu Jun 12 17:20:39 2014 New Revision: 912359 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/core.html websites/staging/deltaspike/trunk/content/spi.html Propchange: websites/staging/deltaspike/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Thu Jun 12 17:20:39 2014 @@ -1 +1 @@ -1602186 +1602236 Modified: websites/staging/deltaspike/trunk/content/core.html == --- websites/staging/deltaspike/trunk/content/core.html (original) +++ websites/staging/deltaspike/trunk/content/core.html Thu Jun 12 17:20:39 2014 @@ -140,6 +140,7 @@ Notice:Licensed to the Apache Softwa /ul /li lia href=#scopesScopes/a/li +lia href=#deactivatableDeactivatable/a/li /ul /li lia href=#core-utilsCore - Utils/aul @@ -346,7 +347,7 @@ For such cases a custom ExpressionInterp h2 id=literalsLiterals/h2 pLiterals allow the instantiation of annotations by extending the abstract class 'javax.enterprise.util.AnnotationLiteral'/p pstrongExample/strong/p -div class=codehiliteprespan class=kdpublic/span span class=kdabstract/span span class=kdclass/span span class=ncPayByQualifier/span +div class=codehiliteprespan class=kdpublic/span span class=kdabstract/span span class=kdclass/span span class=ncPayByQualifier/span span class=kdextends/span span class=nAnnotationLiteral/spanspan class=olt;/spanspan class=nPayBy/spanspan class=ogt;/span span class=kdimplements/span span class=nPayBy/span span class=o{}/span @@ -825,6 +826,32 @@ object to give flow control to the handl that exception chain, unless it's explicitly marked as unmuted via the codeunmute()/code method on codeExceptionEvent/code./p h2 id=scopesScopes/h2 +h2 id=deactivatableDeactivatable/h2 +pDeltaSpike allows you to deactivate its own Extensions. You just need to implement your a href=spi.html#classdeactivatorClassDeactivator/a./p +pThe ClassDeactivator should be resolved by any ConfigSource using the key codeorg.apache.deltaspike.core.spi.activation.ClassDeactivator/code. For example, we can disable SecurityExtension having the following class:/p +div class=codehiliteprespan class=kdpublic/span span class=kdclass/span span class=ncCustomClassDeactivator/span span class=kdimplements/span span class=nClassDeactivator/span +span class=o{/span + +span class=kdprivate/span span class=kdstatic/span span class=kdfinal/span span class=ktlong/span span class=nserialVersionUID/span span class=o=/span span class=mi1L/spanspan class=o;/span + +span class=nd@Override/span +span class=kdpublic/span span class=nBoolean/span span class=nfisActivated/spanspan class=o(/spanspan class=nClass/spanspan class=olt;?/span span class=kdextends/span span class=nDeactivatable/spanspan class=ogt;/span span class=ntargetClass/spanspan class=o)/span +span class=o{/span +span class=kif/span span class=o(/spanspan class=ntargetClass/spanspan class=o./spanspan class=naequals/spanspan class=o(/spanspan class=nSecurityExtension/spanspan class=o./spanspan class=naclass/spanspan class=o))/span +span class=o{/span +span class=kreturn/span span class=nBoolean/spanspan class=o./spanspan class=naFALSE/spanspan class=o;/span +span class=o}/span +span class=kreturn/span span class=kcnull/spanspan class=o;/span span class=c1//no result for the given class/span +span class=o}/span +span class=o}/span +/pre/div + + +pnow, we can use the file /META-INF/apache-deltaspike.properties (or any other a href=configuration.html#configsources-provided-by-defaultConfigSource/a) with the following key/value:/p +div class=codehiliteprespan class=norg/spanspan class=p./spanspan class=napache/spanspan class=p./spanspan class=ndeltaspike/spanspan class=p./spanspan class=ncore/spanspan class=p./spanspan class=nspi/spanspan class=p./spanspan class=nactivation/spanspan class=p./spanspan class=nClassDeactivator/spanspan class=p=/spanspan class=norg/spanspan class=p./spanspan class=ntest/spanspan class=p./spanspan class=nCustomClassDeactivator/span +/pre/div + + h1 id=core-utilsCore - Utils/h1 pDeltaSpike provides many utility-classes (no constructor / static methods) that can be useful for your project./p pBelow you can find an information about these classes./p Modified: websites/staging/deltaspike/trunk/content/spi.html == --- websites/staging/deltaspike/trunk/content/spi.html (original) +++ websites/staging/deltaspike/trunk/content/spi.html Thu Jun 12 17:20:39 2014 @@ -108,7 +108,7 @@ DeltaSpike itself doesn't deactivate an h2 id=classdeactivatorClassDeactivator/h2 pA class-deactivator allows to specify