Seems like we should support the same constraints here as we do in the
conditional resource inclusion in config.xml.


On Thu, Jan 16, 2014 at 6:33 AM, Rafal Korytkowski <notifications@github.com
> wrote:

> In api/src/main/java/org/openmrs/annotation/OpenmrsProfile.java:
>
> > +import java.lang.annotation.ElementType;
> > +import java.lang.annotation.Inherited;
> > +import java.lang.annotation.Retention;
> > +import java.lang.annotation.RetentionPolicy;
> > +import java.lang.annotation.Target;
> > +
> > +/**
> > + * Placed on beans which should be loaded conditionally based on OpenMRS version or started modules.
> > + */
> > +@Target( { ElementType.TYPE })
> > +@Retention(RetentionPolicy.RUNTIME)
> > +@Inherited
> > +@Documented
> > +public @interface OpenmrsProfile {
> > +	
> > +	public String openmrsVersion() default "";
>
> We could add here modules as well.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openmrs/openmrs-core/pull/499/files#r8932745>
> .
>