Package com.levigo.jadice.web.server
Interface AnnotationProfileRegistry
public interface AnnotationProfileRegistry
The AnnotationProfileRegistry holds all
AnnotationProfiles and offers methods to register
and obtain profiles.
Additionally AnnotationImageProviders can be registered on profiles, serving images for
the appropriate JWTImageAnnoation.
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationProfile(String name) Obtains anAnnotationProfileby a given name.Obtains all registeredAnnotationProfiles.Obtains all profile names that have been registered.voidregisterAnnotationImageProvider(String annotationProfileName, AnnotationImageProvider annotationImageProvider) Registers anAnnotationImageProviderat the registry on a given profile name.voidregisterProfile(AnnotationProfile annotationProfile) Registers anAnnotationProfileat the registry.voidregisterProfile(String name, AnnotationProfile annotationProfile) Registers anAnnotationProfileat the registry on a given name.
-
Method Details
-
registerProfile
Registers anAnnotationProfileat the registry.- Parameters:
annotationProfile- the AnnotationProfile to register
-
registerProfile
Registers anAnnotationProfileat 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 anAnnotationImageProviderat 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
Setof all registered names
-
getRegisteredAnnotationProfiles
Collection<AnnotationProfile> getRegisteredAnnotationProfiles()Obtains all registeredAnnotationProfiles.- Returns:
- a
Collectionof all registered AnnotationProfiles
-
getAnnotationProfile
Obtains anAnnotationProfileby a given name.- Parameters:
name- on which the AnnotationProfile was registered on- Returns:
- the appropriate AnnotationProfile or
nullif none was found.
-