public class ResolutionContext extends Object
| Constructor and Description |
|---|
ResolutionContext(Injector injector,
ObjectIdentifier identifier)
Creates a new resolution context with no predecessors.
|
| Modifier and Type | Method and Description |
|---|---|
ResolutionContext |
createChildContext(ObjectIdentifier identifier)
Creates a context for the given identifier with this context as parent.
|
ObjectIdentifier |
getIdentifier() |
Injector |
getInjector() |
ObjectIdentifier |
getOriginalIdentifier() |
List<ResolutionContext> |
getParents() |
void |
setIdentifier(ObjectIdentifier identifier)
Sets the class to instantiate an object of.
|
public ResolutionContext(Injector injector, ObjectIdentifier identifier)
injector - the injectoridentifier - the identifier of the object to createpublic Injector getInjector()
public ObjectIdentifier getOriginalIdentifier()
public ObjectIdentifier getIdentifier()
public List<ResolutionContext> getParents()
public void setIdentifier(ObjectIdentifier identifier)
identifier - class to use (child class of requested class)public ResolutionContext createChildContext(ObjectIdentifier identifier)
identifier - the identifier to create a context forCopyright © 2017. All rights reserved.