The Artima Developer Community
Sponsored Link

Java Buzz Forum
AOP to implement Annotations

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
AOP to implement Annotations Posted: Mar 19, 2005 3:26 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: AOP to implement Annotations
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
The use, and development of Annotations will increase the use of AOP

Why do I say that? I think it makes sense from what we are seeing happen.

Right now, if you develop your own annotation, how do you actually DO something with it?

  • Suns APT tool (source only? come on.)
  • Reflection
  • Write a quick Aspect :)

I naturally move to writing a simple Aspect to handle the work for me.

We are seeing these thoughts via:

  • Bill Burke and JBoss have pioneered some of this thinking. Have Annotations as a nice way for users to get things done which happen to be using AOP below. And, then allow them to EXTEND using AOP themselves if they need too.
  • Adrian's Event Driven example
  • Ramnivas' thoughts 1, 2, 3
  • Sam Pullara also had an example showing just how simple it is to put together a small DSL via a quick annotation and an Aspect, including an @Aspect

Sam also pointed out the similarity between this model, and JView/JDirect from the Microsoft JVM.

/** @dll.import("URLMON.DLL", unicode) */

private static native int FindMimeFromData(String prt, String URL, byte[] pbuff, int bufsize, String prop, int dmimeflag, int[] pout, int res);

Wait a minute. Doesn't this look familiar? :)

Read: AOP to implement Annotations

Topic: JavaBlogs and WordPress loves to repost old blog entries Previous Topic   Next Topic Topic: Asbestos menace in India

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use