public class ApplicationIdStoreAdapter extends java.lang.Object implements ApplicationIdStore
Constructor and Description |
---|
ApplicationIdStoreAdapter() |
Modifier and Type | Method and 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.
|
public java.util.Set<ApplicationId> getAppIds()
ApplicationIdStore
getAppIds
in interface ApplicationIdStore
public ApplicationId getAppId(java.lang.Short id)
ApplicationIdStore
getAppId
in interface ApplicationIdStore
id
- the short value of the idpublic ApplicationId getAppId(java.lang.String name)
ApplicationIdStore
getAppId
in interface ApplicationIdStore
name
- application namepublic ApplicationId registerApplication(java.lang.String identifier)
ApplicationIdStore
org.flying.circus.app
registerApplication
in interface ApplicationIdStore
identifier
- string identifier