A signature to access CloudEvents' internal list of ExtensionFormat
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
2462b4637f
commit
0257406506
|
@ -0,0 +1,25 @@
|
|||
package io.cloudevents.fun;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import io.cloudevents.Attributes;
|
||||
import io.cloudevents.CloudEvent;
|
||||
import io.cloudevents.extensions.ExtensionFormat;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author fabiojose
|
||||
*
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ExtensionFormatAccessor<A extends Attributes, T> {
|
||||
|
||||
/**
|
||||
* To get access to the internal collection of {@link ExtensionFormat} inside
|
||||
* the {@link CloudEvent} implementation
|
||||
*
|
||||
* @param cloudEvent
|
||||
* @return
|
||||
*/
|
||||
Collection<ExtensionFormat> extensionsOf(CloudEvent<A, T> cloudEvent);
|
||||
}
|
Loading…
Reference in New Issue