Coverage Report - org.boretti.drools.integration.drools4.annotations.DroolsService
 
Classes in this File Line Coverage Branch Coverage Complexity
DroolsService
N/A
N/A
0
 
 1  
 /*
 2  
     Drools4 Integration Helper
 3  
     Copyright (C) 2009  Mathieu Boretti mathieu.boretti@gmail.com
 4  
 
 5  
     This program is free software: you can redistribute it and/or modify
 6  
     it under the terms of the GNU General Public License as published by
 7  
     the Free Software Foundation, either version 3 of the License, or
 8  
     (at your option) any later version.
 9  
 
 10  
     This program is distributed in the hope that it will be useful,
 11  
     but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
     GNU General Public License for more details.
 14  
 
 15  
     You should have received a copy of the GNU General Public License
 16  
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 17  
 
 18  
  */
 19  
 package org.boretti.drools.integration.drools4.annotations;
 20  
 
 21  
 import static java.lang.annotation.ElementType.TYPE;
 22  
 import static java.lang.annotation.RetentionPolicy.RUNTIME;
 23  
 
 24  
 import java.lang.annotation.Retention;
 25  
 import java.lang.annotation.Target;
 26  
 
 27  
 import org.boretti.drools.integration.drools4.DroolsServiceType;
 28  
 
 29  
 /**
 30  
  * This annotation defins the interface
 31  
  * @author mbo
 32  
  *
 33  
  */
 34  
 @Retention(RUNTIME)
 35  
 @Target(TYPE)
 36  
 public @interface DroolsService {
 37  
         /**
 38  
          * This is the type of the service source.
 39  
          * <ul>
 40  
          * <li>COMPILED=Use a compiled drools rule</li>
 41  
          * <li>SOURCE=Use a source drools file and compile it</li>
 42  
          * </ul>
 43  
          * @return
 44  
          */
 45  
         DroolsServiceType type() default DroolsServiceType.COMPILED;
 46  
         
 47  
         /**
 48  
          * This is the resource name.
 49  
          * If not specified, use interface name.drl for source and interface name.cdrl for compiled one.
 50  
          * @return
 51  
          */
 52  
         String resourceName() default "";
 53  
 }