Quick question about annotating a POJO in Java 1.5.  This is my annotation 
interface.


  | package reger.cache.jboss;
  | 
  | import java.lang.annotation.Target;
  | import java.lang.annotation.ElementType;
  | 
  | @Target({ElementType.TYPE})
  | public @interface Cacheable {
  | }

I'm then annotating a POJO like this:

package reger.mypackage;
  | 
  | import reger.cache.jboss.Cacheable;
  | 
  | @Cacheable
  | public class MyClass{
  | ...
  | }

I'm sure this works for POJOs.  But what about interfaces? 

package reger.mypackage;
  | 
  | import reger.cache.jboss.Cacheable;
  | 
  | @Cacheable
  | public interface MyInterface{
  | ...
  | }

Is this the proper syntax?  And if so will this automatically annotate all 
implementing classes?

Thanks.

Joe

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916194#3916194

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916194


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to