23 lines
679 B
Java
23 lines
679 B
Java
package org.openautonomousconnection.protocol.annotations;
|
|
|
|
import org.openautonomousconnection.protocol.versions.ProtocolVersion;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/**
|
|
* Annotation to provide metadata about protocol handlers or classes.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface ProtocolInfo {
|
|
|
|
/**
|
|
* Specifies the side of the protocol that the annotated class or method is associated with.
|
|
* Default is ALL, indicating that it can be used on any side.
|
|
*
|
|
* @return The protocol side.
|
|
*/
|
|
ProtocolVersion.ProtocolSide protocolSide() default ProtocolVersion.ProtocolSide.ALL;
|
|
|
|
}
|