Package com.levigo.jadice.web.server
Interface AnnotationProfileRegistry
public interface AnnotationProfileRegistry
The AnnotationProfileRegistry holds all
AnnotationProfile
s and offers methods to register
and obtain profiles.
Additionally AnnotationImageProvider
s can be registered on profiles, serving images for
the appropriate JWTImageAnnoation.
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationProfile
(String name) Obtains anAnnotationProfile
by a given name.Obtains all registeredAnnotationProfile
s.Obtains all profile names that have been registered.void
registerAnnotationImageProvider
(String annotationProfileName, AnnotationImageProvider annotationImageProvider) Registers anAnnotationImageProvider
at the registry on a given profile name.void
registerProfile
(AnnotationProfile annotationProfile) Registers anAnnotationProfile
at the registry.void
registerProfile
(String name, AnnotationProfile annotationProfile) Registers anAnnotationProfile
at the registry on a given name.
-
Method Details
-
registerProfile
Registers anAnnotationProfile
at the registry.- Parameters:
annotationProfile
- the AnnotationProfile to register
-
registerProfile
Registers anAnnotationProfile
at the registry on a given name.- Parameters:
name
- the name to register the AnnotationProfile onannotationProfile
- the AnnotationProfile to register
-
registerAnnotationImageProvider
void registerAnnotationImageProvider(String annotationProfileName, AnnotationImageProvider annotationImageProvider) Registers anAnnotationImageProvider
at the registry on a given profile name.- Parameters:
annotationProfileName
- the profile name to register the AnnotationImageProvider onannotationImageProvider
- the AnnotationImageProvider to register
-
getRegisteredNames
Obtains all profile names that have been registered.- Returns:
- a
Set
of all registered names
-
getRegisteredAnnotationProfiles
Collection<AnnotationProfile> getRegisteredAnnotationProfiles()Obtains all registeredAnnotationProfile
s.- Returns:
- a
Collection
of all registered AnnotationProfiles
-
getAnnotationProfile
Obtains anAnnotationProfile
by a given name.- Parameters:
name
- on which the AnnotationProfile was registered on- Returns:
- the appropriate AnnotationProfile or
null
if none was found.
-