All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.easyrules.spring.SpringRule Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.easyrules.spring;

import org.easyrules.annotation.Rule;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation that turns a POJO into:
 *
 * 
    *
  • an Easy Rules rule
  • *
  • a Spring prototype-scoped bean
  • *
* * @author Mahmoud Ben Hassine ([email protected]) */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Rule @Component @Scope("prototype") public @interface SpringRule { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy