1 package com4j; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 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(RetentionPolicy.RUNTIME) 19 @Target({ElementType.PARAMETER}) 20 public @interface MarshalAs { 21 NativeType value(); 22 } 23