Interface StaticMetadata


public interface StaticMetadata
Provides access to a commonly accepted set of metadata.

Please note that there is no default implementation with setters for each field available to enforce a different style of usage. Whenever you need to return StaticMetadata create an anonymous implementation with each getter implementation annotated with @Override. This way the compiler helps you to ensure that each field is actually set. When it comes to refactoring this interface, say a field is added and anotherone gets removed a simple compiler run detects all places you need to change in your client code to adjust to the new schema. So it is highly recommended to stay away from the traditional setter idiom.