Interface AnnotationProfiles.Request
- Enclosing interface:
AnnotationProfiles
public static interface AnnotationProfiles.Request
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(AnnotationProfiles.Handler handler) Register aAnnotationProfiles.Handlerwhich will be notified once theAnnotationProfiles.Requesthas been completed.Access theAnnotationProfileassociated with the request.booleanisLoaded()
-
Method Details
-
getProfile
AnnotationProfile getProfile()Access theAnnotationProfileassociated with the request. This method will throw aIllegalStateExceptionif theAnnotationProfiles.Requesthas not yet been completed. Access this method only ifisLoaded()returnstrue.- Returns:
- the requested
AnnotationProfileornullif the requested profile could not be found. - Throws:
IllegalStateException- if theAnnotationProfiles.Requesthas not yet been completed. Call this method only ifisLoaded()returnstrue.
-
isLoaded
boolean isLoaded()- Returns:
trueif theAnnotationProfiles.Requesthas been finished.
-
addHandler
Register aAnnotationProfiles.Handlerwhich will be notified once theAnnotationProfiles.Requesthas been completed. If theAnnotationProfiles.Requesthas been completed prior to calling this method, the givenAnnotationProfiles.Handlerwill be invoked immediately.- Parameters:
handler- theAnnotationProfiles.Handlerthat will be notified once the requestcompletes.
-