/** * Create {@link AnnotatedEndpoint} from class. * * @param annotatedClass annotated class. * @param componentProvider used for instantiating. * @param isServerEndpoint {@code true} iff annotated endpoint is deployed on server side. * @param incomingBufferSize size limit of the incoming buffer. * @param collector error collector. * @param endpointEventListener listener of monitored endpoint events. * @return new instance. */ public static AnnotatedEndpoint fromClass(Class<?> annotatedClass, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener) { return new AnnotatedEndpoint(annotatedClass, null, componentProvider, isServerEndpoint, incomingBufferSize, collector, endpointEventListener); }
/** * Create {@link AnnotatedEndpoint} from class. * * @param annotatedClass annotated class. * @param componentProvider used for instantiating. * @param isServerEndpoint {@code true} iff annotated endpoint is deployed on server side. * @param incomingBufferSize size limit of the incoming buffer. * @param collector error collector. * @param endpointEventListener listener of monitored endpoint events. * @return new instance. */ public static AnnotatedEndpoint fromClass(Class<?> annotatedClass, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener) { return new AnnotatedEndpoint(annotatedClass, null, componentProvider, isServerEndpoint, incomingBufferSize, collector, endpointEventListener); }
/** * Create {@link AnnotatedEndpoint} from instance. * * @param annotatedInstance annotated instance. * @param componentProvider used for instantiating. * @param isServerEndpoint {@code true} iff annotated endpoint is deployed on server side. * @param incomingBufferSize size limit of the incoming buffer * @param collector error collector. * @return new instance. */ public static AnnotatedEndpoint fromInstance( Object annotatedInstance, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector) { return new AnnotatedEndpoint(annotatedInstance.getClass(), annotatedInstance, componentProvider, isServerEndpoint, incomingBufferSize, collector, EndpointEventListener.NO_OP); }
/** * Create {@link AnnotatedEndpoint} from instance. * * @param annotatedInstance annotated instance. * @param componentProvider used for instantiating. * @param isServerEndpoint {@code true} iff annotated endpoint is deployed on server side. * @param incomingBufferSize size limit of the incoming buffer * @param collector error collector. * @return new instance. */ public static AnnotatedEndpoint fromInstance( Object annotatedInstance, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector) { return new AnnotatedEndpoint(annotatedInstance.getClass(), annotatedInstance, componentProvider, isServerEndpoint, incomingBufferSize, collector, EndpointEventListener.NO_OP); }