Runtime annotations

Intro

The task is to create annotations that can be used to annotate classes that need to be marshalled to XML. These annotations are going to be processed at runtime.

My first annotation

We add the retention annotation so the compiler keeps it available at runtime

@Retention(RetentionPolicy.RUNTIME)
public @interface XmlElement {
	String namespace() default "duh";
}
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.