com.googlecode.lightest.core
Class SystemWrapper

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

public class SystemWrapper
extends Object
implements groovy.lang.GroovyObject

Wraps static method calls on System to achieve DI.


Constructor Summary
SystemWrapper()
           
 
Method Summary
 long currentTimeMillis()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getProperty(String key)
           
 Object invokeMethod(String name, Object args)
           
 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

SystemWrapper

public SystemWrapper()
Method Detail

currentTimeMillis

public long currentTimeMillis()

getProperty

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

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

setProperty

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


Copyright © 2009. All Rights Reserved.