public class FeatureContextWrapper extends Object implements FeatureContext, InjectionManagerSupplier
FeatureContext
that can supply instance of
injection manager
.Constructor and Description |
---|
FeatureContextWrapper(FeatureContext context,
InjectionManager injectionManager)
Create a new instance of wrapper.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration() |
InjectionManager |
getInjectionManager()
Get injection manager.
|
FeatureContext |
property(String name,
Object value) |
FeatureContext |
register(Class<?> componentClass) |
FeatureContext |
register(Class<?> componentClass,
Class<?>... contracts) |
FeatureContext |
register(Class<?> componentClass,
int priority) |
FeatureContext |
register(Class<?> componentClass,
Map<Class<?>,Integer> contracts) |
FeatureContext |
register(Object component) |
FeatureContext |
register(Object component,
Class<?>... contracts) |
FeatureContext |
register(Object component,
int priority) |
FeatureContext |
register(Object component,
Map<Class<?>,Integer> contracts) |
public FeatureContextWrapper(FeatureContext context, InjectionManager injectionManager)
context
- Feature context instance that should be wrapped.injectionManager
- injection manager.public Configuration getConfiguration()
getConfiguration
in interface Configurable<FeatureContext>
public FeatureContext property(String name, Object value)
property
in interface Configurable<FeatureContext>
public FeatureContext register(Class<?> componentClass)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Class<?> componentClass, int priority)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Class<?> componentClass, Class<?>... contracts)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Object component)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Object component, int priority)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Object component, Class<?>... contracts)
register
in interface Configurable<FeatureContext>
public FeatureContext register(Object component, Map<Class<?>,Integer> contracts)
register
in interface Configurable<FeatureContext>
public InjectionManager getInjectionManager()
InjectionManagerSupplier
getInjectionManager
in interface InjectionManagerSupplier
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.