----- Original Message ----
From: Hendy Irawan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, August 6, 2008 1:05:49 PM
Subject: Re: Annotations -- Re: [id-ruby] deployment manjanya # was Ada yang 
pernah coba mod_ruby di Apache ga?


2008/8/6 Widi Harsojo <[EMAIL PROTECTED] com>

> >
> > Bayangkan anda mebuat suatu aplikasi dengan berbagai macam plugins.
> > Annotation bisa digunakan untuk "menandai" methods yg dipakai untuk
> > inisialisasi, de-inisialisasi plugin.
> >
> > E.g.
> >
> > public class SpeakPlugin implements Plugin {
> > @Post-create
> > void doSomethingAfterCre ate(){
> ruby....void?
>

Itu tadi contoh di Java.

Untuk annotation di (J)Ruby syntax-nya seperti ini:

# This is a mojo description
# @goal
# @phase "validate"
# @requiresDependency Resolution "compile"
class MyMojo < Mojo

________________________________

maksudnya sudah di-support di jruby? khusus jruby tok?
tapi kok masuk sbg comment? (di belakang pound sign #)
atau contoh di atas ini baru hypothetical code?

rgds,
Edwin


      

Kirim email ke