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

com.github.likavn.eventbus.ConditionalOnEventbusActive Maven / Gradle / Ivy

There is a newer version: 2.5.0-RC3
Show newest version
/**
 * Copyright 2023-2033, likavn ([email protected]).
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.github.likavn.eventbus; import com.github.likavn.eventbus.core.metadata.BusType; import org.springframework.context.annotation.Conditional; import java.lang.annotation.*; /** * 消息中间件激活配置注解 * * @author likavn * @date 2024/10/08 **/ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Conditional(OnEventbusActiveCondition.class) public @interface ConditionalOnEventbusActive { /** * 消息中间件类型{@link BusType} * * @return type */ BusType value(); /** * 是否是消息生产者 * * @return true/false */ boolean sender() default false; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy