|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.flow.javascript.fom.JavaScriptAspectWeaver
The JavaScriptAspectWeaver
provides functionality to intercept
JavaScript functions
Known restrictions, to be implemented, open questions:
"cocoon.load( uri, aspectFiles[] )"
JavaScriptAspectWeaver
within the cocoon.load
method. Possible solutions:
JavaScriptAspectWeaver
to a
regular Avalon component which is configureable itself.JavaScriptAspectWeaver
to the
setup()
method of AO_FOM_Cocoon
Constructor Summary | |
JavaScriptAspectWeaver()
|
Method Summary | |
protected void |
addInterceptorGroup(String source)
Add a group of interceptor tokens to the AspectWeaver. |
boolean |
areScriptsApplied()
|
protected void |
clearInterceptorGroups()
Reset the variable containing all interceptions |
Reader |
getInterceptedScriptAsReader()
Get the intercepted base script (all interceptions found in cocoon.apply(..) are added to the script. |
static char[] |
readSourceIntoCharArray(InputStream is)
Convert an input stream into an array of char |
void |
service(ServiceManager manager)
|
void |
setBaseScript(Source source)
Set the base script (the script which is scanned for applied intercepting scripts) and if scripts are applied those are scanned the code is added to interceptorGroups |
void |
setSerializeResultScriptParam(boolean serialize)
Should the JavaScriptAspectWeaver write the result script into separate file in the same directory as the basescript? |
void |
setStopExecutionFunctionsConf(Configuration conf)
Provide configuration (part of the Interpreter configuration) |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaScriptAspectWeaver()
Method Detail |
public void setBaseScript(Source source) throws Exception
interceptorGroups
Exception
public Reader getInterceptedScriptAsReader() throws Exception
Exception
protected void addInterceptorGroup(String source) throws Exception
Exception
public void setSerializeResultScriptParam(boolean serialize)
public void setStopExecutionFunctionsConf(Configuration conf) throws ConfigurationException
ConfigurationException
protected void clearInterceptorGroups()
public static char[] readSourceIntoCharArray(InputStream is) throws IOException
char
IOException
public boolean areScriptsApplied()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |