package com.huashe.park.infrastructure.socket.cfg;

import org.springframework.context.annotation.Import;

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

/**
 * The interface Enable socket server.
 * 自动注册SocketServer
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(value = SocketServerRegistrar.class)
public @interface EnableSocketServer {
    /**
     * Base packages string [ ].
     *
     * @return the string [ ]
     */
    String[] basePackages() default {};

    /**
     * Base package classes class [ ].
     *
     * @return the class [ ]
     */
    Class<?>[] basePackageClasses() default {};
}
