def wrap_func(func): AnnotationUtils.add_annotation( func, Scheduled(cron=cron, interval=interval, initial_delay=initial_delay)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Route(rule=rule, **options)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, AsyncRun(executor=executor)) return func
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)
def wrap_func(func): AnnotationUtils.add_annotation( func, Blueprint(url_prefix=url_prefix, **options)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Configuration(name=name)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Conditional(condition)) return func
def autowired(func): AnnotationUtils.add_annotation(func, Autowired()) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Component(name=name)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Include(values)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Bean(name=name)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Controller(name=name)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Service(name=name)) return func
def wrap_func(func): AnnotationUtils.add_annotation(func, Repository(name=name)) return func