Return-Path: X-Original-To: apmail-deltaspike-commits-archive@www.apache.org Delivered-To: apmail-deltaspike-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7501719CEF for ; Sat, 2 Apr 2016 13:52:23 +0000 (UTC) Received: (qmail 69937 invoked by uid 500); 2 Apr 2016 13:52:23 -0000 Delivered-To: apmail-deltaspike-commits-archive@deltaspike.apache.org Received: (qmail 69904 invoked by uid 500); 2 Apr 2016 13:52:23 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 69895 invoked by uid 99); 2 Apr 2016 13:52:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2016 13:52:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EEB591A09AC for ; Sat, 2 Apr 2016 13:52:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 9Mpo0CREk-Nw for ; Sat, 2 Apr 2016 13:52:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 5254C5F20E for ; Sat, 2 Apr 2016 13:52:20 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5501E0226 for ; Sat, 2 Apr 2016 13:52:19 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id B4DAA3A006A for ; Sat, 2 Apr 2016 13:52:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r984522 - in /websites/staging/deltaspike/trunk/content: ./ documentation/data.html documentation/partial-bean.html documentation/proxy.html documentation/scheduler.html documentation/snapshots.html Date: Sat, 02 Apr 2016 13:52:19 -0000 To: commits@deltaspike.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160402135219.B4DAA3A006A@svn01-us-west.apache.org> Author: buildbot Date: Sat Apr 2 13:52:19 2016 New Revision: 984522 Log: Staging update by buildbot for deltaspike Modified: websites/staging/deltaspike/trunk/content/ (props changed) websites/staging/deltaspike/trunk/content/documentation/data.html websites/staging/deltaspike/trunk/content/documentation/partial-bean.html websites/staging/deltaspike/trunk/content/documentation/proxy.html websites/staging/deltaspike/trunk/content/documentation/scheduler.html websites/staging/deltaspike/trunk/content/documentation/snapshots.html Propchange: websites/staging/deltaspike/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Sat Apr 2 13:52:19 2016 @@ -1 +1 @@ -1737506 +1737507 Modified: websites/staging/deltaspike/trunk/content/documentation/data.html ============================================================================== --- websites/staging/deltaspike/trunk/content/documentation/data.html (original) +++ websites/staging/deltaspike/trunk/content/documentation/data.html Sat Apr 2 13:52:19 2016 @@ -749,6 +749,10 @@ generate the query implementation out of
+

You can use the same way for delete an entity: +* It must start with the removeBy keyword (or related deleteBy).

+
+

Other assumptions taken by the expression evaluator:

Modified: websites/staging/deltaspike/trunk/content/documentation/partial-bean.html ============================================================================== --- websites/staging/deltaspike/trunk/content/documentation/partial-bean.html (original) +++ websites/staging/deltaspike/trunk/content/documentation/partial-bean.html Sat Apr 2 13:52:19 2016 @@ -314,7 +314,7 @@ table.CodeRay td.code>pre{padding:0} -Currently CDI Interceptors applied via @Interceptors and @Decorator are not supported by partial beans! +Currently CDI Interceptors applied via @Interceptors, @Intercepted and @Decorator are not supported by our proxies! Modified: websites/staging/deltaspike/trunk/content/documentation/proxy.html ============================================================================== --- websites/staging/deltaspike/trunk/content/documentation/proxy.html (original) +++ websites/staging/deltaspike/trunk/content/documentation/proxy.html Sat Apr 2 13:52:19 2016 @@ -277,7 +277,19 @@ table.CodeRay td.code>pre{padding:0}

The Proxy Module provides a simple CDI based wrapper for creating dynamic proxies that can be used within other extensions.
The benefit of the DeltaSpike Proxy Module (compared to Javassist or any library) is that the DeltaSpike proxies will execute CDI interceptors.
-The Proxy Module also provides the 'DeltaSpikeProxyContextualLifecycle', which enables you to dynamically register a proxy as CDI bean via our 'BeanBuilder'.

+The Proxy Module also provides the 'DeltaSpikeProxyContextualLifecycle', which enables you to dynamically register a proxy as CDI bean via the DeltaSpike 'BeanBuilder'.

+
+
+ + + + + +
+ + +Currently CDI Interceptors applied via @Interceptors, @Intercepted and @Decorator are not supported by our proxies! +

1. Declare Proxy Module Dependencies

@@ -308,7 +320,81 @@ The Proxy Module also provides the 'Delt

2. Extend DeltaSpikeProxyFactory

-

The key to making the proxy module work is to provide an implementation of DeltaSpikeProxyFactory which will do your proxy work for you. DeltaSpike ships a default one in the PartialBean module which demonstrates how its meant to work.

+

The key to making the proxy module work is to provide an implementation of DeltaSpikeProxyFactory which will do your proxy work for you.
+DeltaSpike ships 3 implementations which demonstrates how its meant to work:

+
+
+
    +
  • +

    org.apache.deltaspike.partialbean.impl.PartialBeanProxyFactory

    +
  • +
  • +

    org.apache.deltaspike.proxy.util.EnableInterceptorsProxyFactory

    +
  • +
  • +

    org.apache.deltaspike.jsf.impl.injection.proxy.ConverterAndValidatorProxyFactory

    +
  • +
+
+
+
+

3. Using @EnableInterceptors

+
+

@EnableInterceptors allows you to enable your bean interceptors for @Produces, which is not supported via the CDI API.
+Both interceptors on method and class level are supported.

+
+
+
+
@MyCustomInterceptor
+public SomeServiceImpl implements SomeService
+{
+    @Transactional
+    public void doSomething()
+    {
+        ....
+    }
+}
+
+
+
+
+
@Produces
+@EnableInterceptors
+public SomeService produce()
+{
+    return new SomeServiceImpl();
+}
+
+
+
+
+

4. Using EnableInterceptorsProxyFactory

+
+

@EnableInterceptors is just a API for producers which is built on EnableInterceptorsProxyFactory.
+With EnableInterceptorsProxyFactory you can just proxy an existing object and let it execute CDI interceptors, if they are defined on the given object class.

+
+
+
+
@MyCustomInterceptor
+public SomeServiceImpl implements SomeService
+{
+    @Transactional
+    public void doSomething()
+    {
+        ....
+    }
+}
+
+
+
+
+
public void init()
+{
+    SomeServiceImpl myService = new SomeServiceImpl();
+    myService = EnableInterceptorsProxyFactory.wrap(myService, BeanManagerProvider.getInstance().getBeanManager());
+    myService.doSomething(); // will execute the interceptors
+}
+
@@ -341,6 +427,8 @@ The Proxy Module also provides the 'Delt Modified: websites/staging/deltaspike/trunk/content/documentation/scheduler.html ============================================================================== --- websites/staging/deltaspike/trunk/content/documentation/scheduler.html (original) +++ websites/staging/deltaspike/trunk/content/documentation/scheduler.html Sat Apr 2 13:52:19 2016 @@ -453,10 +453,25 @@ schedule/install jobs dynamically.

+

Configurable CRON expressions

+
+
+

In some cases it might be useful to configure a cron-expression e.g. per Project-Stage. +Therefore, DeltaSpike (v1.6.0+) allows to use keys instead of hardcoded expressions.

+
+
+

In the previous examples we had e.g. @Scheduled(cronExpression = "0 0/10 * * * ?"). +Instead of hardcoding it that way, it’s possible to use e.g. @Scheduled(cronExpression = "{myCronExpression}") and +in one of the active config-sources used by DeltaSpike a concrete expression can be defined e.g. via myCronExpression=0 0/10 * * * ?. +Using e.g. myCronExpression.Development=0 0/5 * * * ? would allow to change the configured expression for Project-Stage development.

+
+
+
+

Manual Scheduler Control

-

Th SPI allows to control the scheduler (or integrate any other +

The SPI allows to control the scheduler (or integrate any other compatible scheduler as an alternative to Quartz2)

@@ -580,6 +595,7 @@ For more information, see @Scheduled with org.quartz.Job or java.lang.Runnable +
  • Configurable CRON expressions
  • Manual Scheduler Control
  • Execute java.lang.Runnable with ManagedExecutorService
  • Custom Scheduler
  • Modified: websites/staging/deltaspike/trunk/content/documentation/snapshots.html ============================================================================== --- websites/staging/deltaspike/trunk/content/documentation/snapshots.html (original) +++ websites/staging/deltaspike/trunk/content/documentation/snapshots.html Sat Apr 2 13:52:19 2016 @@ -343,7 +343,7 @@ Snapshots provide previews of DeltaSpike
    <properties>
    -    <deltaspike.version>1.5.5-SNAPSHOT</deltaspike.version>
    +    <deltaspike.version>1.6.0-SNAPSHOT</deltaspike.version>
     </properties>