All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clearlydecoded.messenger.discovery.MessageProcessorDiscoverer Maven / Gradle / Ivy

Go to download

Easily create and expose a Spring REST-based API implementation, without losing strong Java message typing, improving simplicity and robustness of your implementations. It's so easy to use, you can start implementing your production APIs in under 5 minutes.

There is a newer version: 2.2.2
Show newest version
/*
 * Copyright 2018 Yaakov Chaikin ([email protected]). Licensed under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
 * may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required
 * by applicable law or agreed to in writing, software distributed under the License is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
 * the License for the specific language governing permissions and limitations under the License.
 */
package com.clearlydecoded.messenger.discovery;

import com.clearlydecoded.messenger.Message;
import com.clearlydecoded.messenger.MessageProcessor;
import com.clearlydecoded.messenger.MessageResponse;
import java.util.List;

/**
 * {@link MessageProcessorDiscoverer} interface defines a method that discovers all message
 * processors within the system (however that's done), which implement {@link MessageProcessor}
 * interface.
 *
 * @author Yaakov Chaikin ([email protected])
 */
public interface MessageProcessorDiscoverer {

  /**
   * This method scans the system for concrete message processor implementations of
   * {@link MessageProcessor} interface. Empty list is returned if nothing is discovered.
   *
   * @return List of discovered concrete classes within the system that implement
   * {@link MessageProcessor} interface. Empty list is returned if nothing is discovered.
   */
  List,
      ? extends MessageResponse>> discoverProcessors();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy