Solved

Java 1.5 metadata annotations and interface generation

Posted on 2004-08-19
5
224 Views
Last Modified: 2010-03-31
This question is about new Java 1.5 new feature metadata annotations.
In this document:  http://java.sun.com/developer/technicalArticles/releases/j2se15 I read the following:

-----------------------

With a metadata processing tool, many repetitive coding steps could be reduced to a concise metadata tag. For example, the remote interface required when accessing a JAX-RPC service implementation could be implemented as follows:

Before

public interface PingIF extends Remote {
      public void ping() throws RemoteException;
  }

  public class Ping implements PingIF {
     public void ping() {
     }
  }


After

public class Ping {
     public @remote void ping() {
     }
  }


--------------------------

Does that mean that Java has the mechanism to automatically create the remote interface when you write "@remote" before a method? I've been looking for the "remote" annotation through the 1.5 API, with no luck. Or it means that Java 1.5 metadata provides you with a mechanism to create a piece of code whose result is that?.
If it's the latter, do you guys know any tool that does that?.
0
Comment
Question by:pulupul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 11849400
the annotations can be used by tools, such as apt:
http://java.sun.com/j2se/1.5.0/docs/guide/apt/index.html
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 50 total points
ID: 11850027
JSR 175 states that you could indicate what methods are designed for remote access http://www.jcp.org/en/jsr/detail?id=175. If I were you I would wait for the official release before I can be 100% sure what annotation keywords are supported.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11850234
>>http://java.sun.com/j2se/1.5.0/docs/guide/apt/index.html
 
 

>>
FAQs
Do you know about the Debian Advanced Packaging Tool?
Yes.
>>

ROTFL
0
 
LVL 35

Expert Comment

by:girionis
ID: 11869170
:)
0
 
LVL 92

Expert Comment

by:objects
ID: 11876032
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question