예제 #1
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(
         func,
         Scheduled(cron=cron,
                   interval=interval,
                   initial_delay=initial_delay))
     return func
예제 #2
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Route(rule=rule, **options))
     return func
예제 #3
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, AsyncRun(executor=executor))
     return func
예제 #4
0
def _add_method_def_filter_annotation(func, name, args=None):
    a = AnnotationUtils.get_annotation(func, MethodDefFilter)
    if a is None:
        a = MethodDefFilter()
        AnnotationUtils.add_annotation(func, a)
    a.add_filter(name, args=args)
예제 #5
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(
         func, Blueprint(url_prefix=url_prefix, **options))
     return func
예제 #6
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Configuration(name=name))
     return func
예제 #7
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Conditional(condition))
     return func
예제 #8
0
def autowired(func):
    AnnotationUtils.add_annotation(func, Autowired())
    return func
예제 #9
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Component(name=name))
     return func
예제 #10
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Include(values))
     return func
예제 #11
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Bean(name=name))
     return func
예제 #12
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Controller(name=name))
     return func
예제 #13
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Service(name=name))
     return func
예제 #14
0
 def wrap_func(func):
     AnnotationUtils.add_annotation(func, Repository(name=name))
     return func