com.googlecode.lightest.core
Class ContextCarryingTaskProvider

java.lang.Object
  extended by com.googlecode.lightest.core.ContextCarryingTaskProvider
All Implemented Interfaces:
groovy.lang.GroovyObject

public class ContextCarryingTaskProvider
extends Object
implements groovy.lang.GroovyObject

Wraps ITaskProvider with a simplified Map-like interface which supports associating provider-specified context values.


Constructor Summary
ContextCarryingTaskProvider(ITaskProvider delegate)
           
 
Method Summary
 boolean containsKey(Object key)
           
 Object get(Object key)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void put(Object key, Object value)
           
 Object remove(Object key)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextCarryingTaskProvider

public ContextCarryingTaskProvider(ITaskProvider delegate)
Method Detail

put

public void put(Object key,
                Object value)

get

public Object get(Object key)

containsKey

public boolean containsKey(Object key)

remove

public Object remove(Object key)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2009. All Rights Reserved.