public interface Scope
Modifier and Type | Method and Description |
---|---|
void |
addRuntime(Component aComponent,
Object aRuntime)
Adds the runtime of a started component.
|
Object |
get(String aKey)
Retrieves a value for the key.
|
<T> T |
getInterfaceImplementation(ProvidedInterface aProvided,
Class<T> aType) |
List<ProvidedInterface> |
getProvidedInterfaces()
Gets the provided interfaces by this scope.
|
Object |
getRuntime(Component aComponent)
Gets the runtime for a component.
|
Object |
getRuntime(String aName)
Gets the runtime for a component based on the name of the component
(excluding its context).
|
void |
publishInterface(ProvidedInterface aInterface,
Object aImplementation)
Publishes an implementation of a provided interface.
|
void |
put(String aKey,
Object aValue)
Adds a key value pair to the scope.
|
List<ProvidedInterface> getProvidedInterfaces()
void put(String aKey, Object aValue)
aKey
- KeyaValue
- Value.void addRuntime(Component aComponent, Object aRuntime)
aComponent
- Component.aRuntime
- Runtime.void publishInterface(ProvidedInterface aInterface, Object aImplementation)
aInterface
- Interface that is provided.aImplementation
- Implementation of the interface.<T> T getInterfaceImplementation(ProvidedInterface aProvided, Class<T> aType)
Object getRuntime(Component aComponent)
aComponent
- Component for which we want to get the runtime.Copyright © 2022. All rights reserved.