Solved

Java 1.5 metadata annotations and interface generation

Posted on 2004-08-19
5
223 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

728 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