Interface AnnotationProfiles.Request
- Enclosing interface:
AnnotationProfiles
public static interface AnnotationProfiles.Request
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(AnnotationProfiles.Handler handler) Register aAnnotationProfiles.Handler
which will be notified once theAnnotationProfiles.Request
has been completed.Access theAnnotationProfile
associated with the request.boolean
isLoaded()
-
Method Details
-
getProfile
AnnotationProfile getProfile()Access theAnnotationProfile
associated with the request. This method will throw aIllegalStateException
if theAnnotationProfiles.Request
has not yet been completed. Access this method only ifisLoaded()
returnstrue
.- Returns:
- the requested
AnnotationProfile
ornull
if the requested profile could not be found. - Throws:
IllegalStateException
- if theAnnotationProfiles.Request
has not yet been completed. Call this method only ifisLoaded()
returnstrue
.
-
isLoaded
boolean isLoaded()- Returns:
true
if theAnnotationProfiles.Request
has been finished.
-
addHandler
Register aAnnotationProfiles.Handler
which will be notified once theAnnotationProfiles.Request
has been completed. If theAnnotationProfiles.Request
has been completed prior to calling this method, the givenAnnotationProfiles.Handler
will be invoked immediately.- Parameters:
handler
- theAnnotationProfiles.Handler
that will be notified once the requestcompletes
.
-