001// Copyright 2008 by Basil Vandegriend. All rights reserved. 002 003package com.basilv.examples.annotations; 004 005import java.lang.annotation.*; 006 007@Retention(RetentionPolicy.RUNTIME) 008@Target( {ElementType.TYPE, ElementType.METHOD }) 009public @interface MyAnnotation { 010 int myProperty(); 011 String myPropertyWithDefault() default ""; 012}