@Plugin(name="Jersey2", description="Jersey2 framework plugin - this does not handle HK2 changes", testedVersions="2.10.1", expectedVersions="2.10.1") public class Jersey2Plugin extends Object
| Constructor and Description |
|---|
Jersey2Plugin() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fixAnnoationAcceptingListener(CtClass ctClass)
Fix a scanning issue with jersey pre-2.4 versions.
|
void |
invalidate(CtClass ctClass,
Class original)
Call reload on the jersey Application when any class changes that is either involved in configuring
the Jersey Application, or if was newly annotated and will be involved in configuring the application.
|
static void |
jerseyServletCallInitialized(CtClass ctClass,
ClassPool classPool)
Initialize the plugin when Jersey's ServletContainer.init(WebConfig config) is called.
|
void |
registerJerseyContainer(Object jerseyContainer,
Object resourceConfig)
Register the jersey container and the classes involved in configuring the Jersey Application
|
@OnClassLoadEvent(classNameRegexp="org.glassfish.jersey.servlet.ServletContainer") public static void jerseyServletCallInitialized(CtClass ctClass, ClassPool classPool) throws NotFoundException, CannotCompileException
@OnClassLoadEvent(classNameRegexp="org.glassfish.jersey.server.internal.scanning.AnnotationAcceptingListener") public static void fixAnnoationAcceptingListener(CtClass ctClass) throws NotFoundException, CannotCompileException
public void registerJerseyContainer(Object jerseyContainer, Object resourceConfig)
@OnClassLoadEvent(classNameRegexp=".*", events=REDEFINE) public void invalidate(CtClass ctClass, Class original) throws Exception
ExceptionCopyright © 2018. All rights reserved.