Results 1 to 2 of 2

Thread: Attribute Driven pointcuts

  1. #1

    Default Attribute Driven pointcuts

    Hi.. can I know how I use this kind of pointcut? an example maybe?

    Maybe this is a silly question.. but this are the only description about attribute driven pointcut, and I dont understand:

    5.2.3.1.2. Attribute-driven pointcuts
    An important type of static pointcut is a metadata-driven pointcut. This uses the values of metadata attributes: typically, source-level metadata.
    and also I found this in the reference:

    Later versions of Spring may offer support for "semantic pointcuts" as offered by JAC: for example, "all methods that change instance variables in the target object."
    is it already available in the latest version? and do you have any examples on using it?

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    TransactionProxyFactoryBean uses an advisor that is driven by metadata pointcuts. (There's a layer of indirection there with TransactionAttributeSource, but it can be set up to use attributes.)

    To implement a metadata-driven pointcut, just extend something like StaticMethodMatcherPointcut and look at the attributes on the class or interface.

    There is no support for "semantic pointcuts" yet.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Replies: 1
    Last Post: Oct 5th, 2005, 06:34 AM
  2. Replies: 1
    Last Post: Jul 28th, 2005, 05:08 PM
  3. stale Oracle processes
    By compostellas in forum Data
    Replies: 7
    Last Post: Jun 27th, 2005, 12:14 PM
  4. MBeanClientInterceptor assumes lower-case Attribute names
    By Joris Kuipers in forum Container
    Replies: 10
    Last Post: Mar 31st, 2005, 09:18 AM
  5. Replies: 2
    Last Post: Sep 5th, 2004, 10:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •