2025-09-29 13:18:15 +02:00
|
|
|
package org.openautonomousconnection.protocol.annotations;
|
|
|
|
|
|
|
|
import org.openautonomousconnection.protocol.versions.ProtocolVersion;
|
|
|
|
|
2025-09-29 17:46:30 +02:00
|
|
|
/**
|
|
|
|
* Annotation to provide metadata about protocol handlers or classes.
|
|
|
|
*/
|
2025-09-29 13:18:15 +02:00
|
|
|
public @interface ProtocolInfo {
|
|
|
|
|
2025-09-29 17:46:30 +02:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2025-09-29 13:18:15 +02:00
|
|
|
ProtocolVersion.ProtocolSide protocolSide() default ProtocolVersion.ProtocolSide.ALL;
|
|
|
|
|
|
|
|
}
|