public class ContextInjector extends Object implements org.softsmithy.lib.util.Injector<Object>
Context to Objects, which implement the ActiveContextSensitive
interface and the application Context to Objects, which implement the ApplicationContextSensitive
interface.
TODO: Replace with CDI?| Constructor and Description |
|---|
ContextInjector(ActiveContextProvider activeContextProvider,
ApplicationContextProvider applicationContextProvider)
Creates a new instance of this class.
|
ContextInjector(ContextManager contextManager)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
inject(Object target)
Injects the active
Context to Objects, which implement the * ActiveContextSensitive interface and the application Context to Objects, which implement the
ApplicationContextSensitive interface. |
public ContextInjector(ActiveContextProvider activeContextProvider, ApplicationContextProvider applicationContextProvider)
activeContextProvider - a provider, which provides the active contextapplicationContextProvider - a provider, which provides the application contextpublic ContextInjector(ContextManager contextManager)
contextManager - a ContextManagerpublic void inject(Object target)
Context to Objects, which implement the * ActiveContextSensitive interface and the application Context to Objects, which implement the
ApplicationContextSensitive interface.inject in interface org.softsmithy.lib.util.Injector<Object>target - the target ObjectCopyright © 2012–2018 Drombler. All rights reserved.