org.codehaus.gmaven.runtime.support
Class ScriptExecutorSupport

java.lang.Object
  extended by org.codehaus.gmaven.feature.support.ComponentSupport
      extended by org.codehaus.gmaven.runtime.support.ScriptExecutorSupport
All Implemented Interfaces:
Component, ScriptExecutor

public abstract class ScriptExecutorSupport
extends ComponentSupport
implements ScriptExecutor

Support for ScriptExecutor component implementations.

Version:
$Id: ScriptExecutorSupport.java 83 2009-12-11 11:01:28Z user57 $
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.codehaus.gmaven.feature.support.ComponentSupport
config, feature, log
 
Fields inherited from interface org.codehaus.gmaven.runtime.ScriptExecutor
KEY
 
Constructor Summary
protected ScriptExecutorSupport(Feature feature)
           
protected ScriptExecutorSupport(Feature feature, Configuration config)
           
 
Method Summary
protected  void applyContext(Object target, Configuration context)
           
protected abstract  Object createClosure(Callable target)
           
protected abstract  Object createMagicAttribute(MagicAttribute attr)
           
 Object execute(ClassSource source, ClassLoader classLoader, ResourceLoader resourceLoader, Configuration context)
           
protected  Object execute(Object target)
           
protected abstract  ClassFactory getClassFactory()
           
protected  Object invokeMethod(Object target, Method method, Object[] args)
           
protected  Method lookupMethod(Class type, String name, Class[] sig)
           
 
Methods inherited from class org.codehaus.gmaven.feature.support.ComponentSupport
config, feature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.gmaven.feature.Component
config, feature
 

Constructor Detail

ScriptExecutorSupport

protected ScriptExecutorSupport(Feature feature,
                                Configuration config)

ScriptExecutorSupport

protected ScriptExecutorSupport(Feature feature)
Method Detail

getClassFactory

protected abstract ClassFactory getClassFactory()

execute

public Object execute(ClassSource source,
                      ClassLoader classLoader,
                      ResourceLoader resourceLoader,
                      Configuration context)
               throws Exception
Specified by:
execute in interface ScriptExecutor
Throws:
Exception

createClosure

protected abstract Object createClosure(Callable target)

createMagicAttribute

protected abstract Object createMagicAttribute(MagicAttribute attr)

applyContext

protected void applyContext(Object target,
                            Configuration context)

execute

protected Object execute(Object target)

lookupMethod

protected Method lookupMethod(Class type,
                              String name,
                              Class[] sig)

invokeMethod

protected Object invokeMethod(Object target,
                              Method method,
                              Object[] args)


Copyright © 2006-2012 Codehaus. All Rights Reserved.