|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.core.IvyContext
public class IvyContext
This class represents an execution context of an Ivy action. It contains several getters to retrieve information, like the used Ivy instance, the cache location...
IvyThread
Constructor Summary | |
---|---|
IvyContext()
|
Method Summary | |
---|---|
void |
checkInterrupted()
|
java.lang.Object |
get(java.lang.String key)
|
java.io.File |
getCache()
|
CacheManager |
getCacheManager()
|
CircularDependencyStrategy |
getCircularDependencyStrategy()
|
static IvyContext |
getContext()
|
EventManager |
getEventManager()
|
Ivy |
getIvy()
Returns the current ivy instance. |
MessageImpl |
getMessageImpl()
|
java.lang.Thread |
getOperatingThread()
|
DependencyResolver |
getResolver()
|
IvySettings |
getSettings()
|
java.lang.Object |
peek(java.lang.String key)
Reads the first object from the list saved under given key in the context. |
java.lang.Object |
pop(java.lang.String key)
Removes and returns first object from the list saved under given key in the context. |
boolean |
pop(java.lang.String key,
java.lang.Object expectedValue)
Removes and returns first object from the list saved under given key in the context but only if it equals the given expectedValue - if not a false value is returned. |
void |
popResolver()
|
void |
push(java.lang.String key,
java.lang.Object value)
Puts a new object at the start of the list saved under given key in the context. |
void |
pushResolver(DependencyResolver resolver)
|
void |
set(java.lang.String key,
java.lang.Object value)
|
void |
setCache(java.io.File cache)
|
static void |
setContext(IvyContext context)
Changes the context associated with this thread. |
void |
setIvy(Ivy ivy)
|
void |
setMessageImpl(MessageImpl impl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IvyContext()
Method Detail |
---|
public static IvyContext getContext()
public static void setContext(IvyContext context)
context
- the new context to use in this thread.public Ivy getIvy()
public void setIvy(Ivy ivy)
public java.io.File getCache()
public void setCache(java.io.File cache)
public IvySettings getSettings()
public CircularDependencyStrategy getCircularDependencyStrategy()
public java.lang.Object get(java.lang.String key)
public void set(java.lang.String key, java.lang.Object value)
public java.lang.Object peek(java.lang.String key)
key
- context key for the string
public java.lang.Object pop(java.lang.String key)
key
- context key for the string
public boolean pop(java.lang.String key, java.lang.Object expectedValue)
key
- context key for the string
public void push(java.lang.String key, java.lang.Object value)
key
- key context key for the stringvalue
- value to be saved under the keypublic java.lang.Thread getOperatingThread()
public MessageImpl getMessageImpl()
public void setMessageImpl(MessageImpl impl)
public EventManager getEventManager()
public CacheManager getCacheManager()
public void checkInterrupted()
public DependencyResolver getResolver()
public void pushResolver(DependencyResolver resolver)
public void popResolver()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |