Annotation and generic interfaces for configuration.