KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com4j > MarshalAs


1 package com4j;
2
3 import java.lang.annotation.ElementType JavaDoc;
4 import java.lang.annotation.Retention JavaDoc;
5 import java.lang.annotation.RetentionPolicy JavaDoc;
6 import java.lang.annotation.Target JavaDoc;
7
8 /**
9  * Controls how a Java parameter should be marshalled
10  * to a native type.
11  *
12  * <p>
13  * This annotation is used on parameters of wrapped COM methods
14  * to control the conversion to the native types.
15  *
16  * @author Kohsuke Kawaguchi (kk@kohsuke.org)
17  */

18 @Retention JavaDoc(RetentionPolicy.RUNTIME)
19 @Target JavaDoc({ElementType.PARAMETER})
20 public @interface MarshalAs {
21     NativeType value();
22 }
23
Popular Tags