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

pl.allegro.tech.hermes.management.domain.owner.PlaintextOwnerSource Maven / Gradle / Ivy

There is a newer version: 2.10.4
Show newest version
package pl.allegro.tech.hermes.management.domain.owner;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import pl.allegro.tech.hermes.api.Owner;

@Component
@Order(PlaintextOwnerSource.ORDER)
public class PlaintextOwnerSource implements OwnerSource {

  public static final int ORDER = 0;
  public static final String NAME = "Plaintext";

  @Override
  public String name() {
    return NAME;
  }

  @Override
  public boolean exists(String ownerId) {
    return true;
  }

  @Override
  public Owner get(String id) throws OwnerNotFound {
    return new Owner(id, id);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy