Skip to content

Instantly share code, notes, and snippets.

View asdofindia's full-sized avatar

Akshay S Dinesh asdofindia

View GitHub Profile
@asdofindia
asdofindia / ConstructorInterceptExample.java
Created June 16, 2020 18:12 — forked from psamsotha/ConstructorInterceptExample.java
Example of constructor interception with Jersey/HK2
import org.aopalliance.intercept.ConstructorInterceptor;
import org.aopalliance.intercept.ConstructorInvocation;
import org.aopalliance.intercept.MethodInterceptor;
import org.glassfish.hk2.api.Filter;
import org.glassfish.hk2.api.InterceptionService;
import org.glassfish.hk2.utilities.BuilderHelper;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Test;