public class DefaultDependencyGraphTransformationContext extends Object implements DependencyGraphTransformationContext
DependencyGraphTransformationContext
.
Internal helper class for collector implementations.Constructor and Description |
---|
DefaultDependencyGraphTransformationContext(RepositorySystemSession session) |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object key)
Gets a keyed value from the context.
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the graph transformation happens.
|
Object |
put(Object key,
Object value)
Puts a keyed value into the context.
|
String |
toString() |
public DefaultDependencyGraphTransformationContext(RepositorySystemSession session)
public RepositorySystemSession getSession()
DependencyGraphTransformationContext
getSession
in interface DependencyGraphTransformationContext
null
.public Object get(Object key)
DependencyGraphTransformationContext
get
in interface DependencyGraphTransformationContext
key
- The key used to query the value, must not be null
.null
if none.public Object put(Object key, Object value)
DependencyGraphTransformationContext
put
in interface DependencyGraphTransformationContext
key
- The key used to store the value, must not be null
.value
- The value to store, may be null
to remove the mapping.null
if none.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.