java - Jersey @PreMatching and name binding in 1 provider -


i need implement jersey filter (containerrequestfilter) needs called during pre-matching phase apply resources.

the pre-matching part can done annotating class @prematching annotation , "apply some" functionality through jersey's namebinding mechanism.

what need combine 2 features in 1 provider; i'm pretty sure cannot done since me seems contradictory (filter called before can check if given class annotated) still want 100% sure of since skipping 1 step in jersey lifecycle , reducing response time.

i'm using jersey 2.6

thanks

i can't answer wether possible or not, wanted comment on "skipping 1 step reduce response time": won't need consider @ @ point. aim @ making code easy read , understand (perhaps better structure split in both filter , feature class , share common code anyway).

if run performance problems/long response times during test/early deploy, profile app , see takes time , focus on areas first. i'm confident time not spent think is, , i'll buy beer if ends being step in lifecycle causing (any) performance problems.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -