Class FeatureContextWrapper
- java.lang.Object
-
- org.glassfish.jersey.model.internal.FeatureContextWrapper
-
- All Implemented Interfaces:
Configurable<FeatureContext>
,FeatureContext
,org.glassfish.jersey.internal.inject.InjectionManagerSupplier
public class FeatureContextWrapper extends Object implements FeatureContext, org.glassfish.jersey.internal.inject.InjectionManagerSupplier
Wrapper ofFeatureContext
that can supply instance ofinjection manager
.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description FeatureContextWrapper(FeatureContext context, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Create a new instance of wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
getConfiguration()
org.glassfish.jersey.internal.inject.InjectionManager
getInjectionManager()
Get injection manager.FeatureContext
property(String name, Object value)
FeatureContext
register(Class<?> componentClass)
FeatureContext
register(Class<?> componentClass, int priority)
FeatureContext
register(Class<?> componentClass, Class<?>... contracts)
FeatureContext
register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
FeatureContext
register(Object component)
FeatureContext
register(Object component, int priority)
FeatureContext
register(Object component, Class<?>... contracts)
FeatureContext
register(Object component, Map<Class<?>,Integer> contracts)
-
-
-
Constructor Detail
-
FeatureContextWrapper
public FeatureContextWrapper(FeatureContext context, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Create a new instance of wrapper.- Parameters:
context
- Feature context instance that should be wrapped.injectionManager
- injection manager.
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceConfigurable<FeatureContext>
-
property
public FeatureContext property(String name, Object value)
- Specified by:
property
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Class<?> componentClass)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Class<?> componentClass, int priority)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Class<?> componentClass, Class<?>... contracts)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Object component)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Object component, int priority)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Object component, Class<?>... contracts)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
register
public FeatureContext register(Object component, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfaceConfigurable<FeatureContext>
-
getInjectionManager
public org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager()
Description copied from interface:org.glassfish.jersey.internal.inject.InjectionManagerSupplier
Get injection manager.- Specified by:
getInjectionManager
in interfaceorg.glassfish.jersey.internal.inject.InjectionManagerSupplier
- Returns:
- injection manager.
-
-