As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br><br><bean id='webscript.my.web.script.get'<br><br>class='com.acme.MyWebScript'<br><br><span style="color: red;">parent='webscript'</span>><br><br><constructor-arg index='0' ref='ServiceRegistry' /><br><br></bean><br><br>
<br><br>public class DelegatingWebScript<br><br>extends DeclarativeWebScript<br><br>{<br><br>private final DynamicDeclarativeWebScript dynamicWebScript;
public DelegatingWebScript(final DynamicDeclarativeWebScript dynamicWebScript)<br><br>{<br><br>this.dynamicWebScript = dynamicWebScript;<br><br>}
@Override<br><br>protected Map executeImpl(WebScriptRequest request, Status status, Cache cache)<br><br>{<br><br>return(dynamicWebScript.execute(request, status, cache));<br><br>}<br><br>}<br><br>
<br><br>public interface DynamicDeclarativeWebScript<br><br>{<br><br>Map execute(WebScriptRequest request, Status status, Cache cache);<br><br>}<br><br>
<br><br><lang:groovy id='groovy.myWebScript'<br><br>refresh-check-delay='5000'<br><br>script-source='classpath:alfresco/extension/groovy/MyWebScript.groovy'><br><br><lang:smileytongue:roperty name='serviceRegistry' ref='ServiceRegistry' /><br><br></lang:groovy>
<bean id='webscript.groovy.myWebScript'<br><br>class='org.alfresco.extension.webscripts.groovy.DynamicDelegatingWebScript'<br><br>parent='webscript'><br><br><constructor-arg index='0' ref='groovy.myWebScript' /><br><br></bean><br><br>
svn co https://forge.alfresco.com/svn/groovy/branches/3.1