Class ApplicationIdStoreAdapter

  • All Implemented Interfaces:
    ApplicationIdStore

    public class ApplicationIdStoreAdapter
    extends java.lang.Object
    implements ApplicationIdStore
    Adapter for testing against app id store.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ApplicationId getAppId​(java.lang.Short id)
      Returns an existing application id from a given id.
      ApplicationId getAppId​(java.lang.String name)
      Returns registered application id from the given name.
      java.util.Set<ApplicationId> getAppIds()
      Returns the set of currently registered application identifiers.
      ApplicationId registerApplication​(java.lang.String identifier)
      Registers a new application by its name, which is expected to follow the reverse DNS convention, e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationIdStoreAdapter

        public ApplicationIdStoreAdapter()
    • Method Detail

      • getAppId

        public ApplicationId getAppId​(java.lang.Short id)
        Description copied from interface: ApplicationIdStore
        Returns an existing application id from a given id.
        Specified by:
        getAppId in interface ApplicationIdStore
        Parameters:
        id - the short value of the id
        Returns:
        an application id; null if no such app registered
      • getAppId

        public ApplicationId getAppId​(java.lang.String name)
        Description copied from interface: ApplicationIdStore
        Returns registered application id from the given name.
        Specified by:
        getAppId in interface ApplicationIdStore
        Parameters:
        name - application name
        Returns:
        an application id; null if no such app registered
      • registerApplication

        public ApplicationId registerApplication​(java.lang.String identifier)
        Description copied from interface: ApplicationIdStore
        Registers a new application by its name, which is expected to follow the reverse DNS convention, e.g. org.flying.circus.app
        Specified by:
        registerApplication in interface ApplicationIdStore
        Parameters:
        identifier - string identifier
        Returns:
        the application id