Skip to content

Instantly share code, notes, and snippets.

ReverseService = beanFactory.getBean("ReverseService");
WriteOutput(ReverseService.doReverse("Hello!"));
beanFactory = new aop("/services");
beanFactory.intercept("ReverseSercice", "BeforeInterceptor");
component {
function before(method,args,target){
arguments.args.input = "before" & arguments.args.input;
}
}
beanFactory = new aop("/services");
ReverseService = beanFactory.getBean("ReverseService");
WriteOutput(ReverseService.doReverse("Hello!"));
var beanFactory = new aop("/services");
component {
public function doReverse(String input){
return Reverse(arguments.input);
}
}
<cfscript>
nz = "Aotearoa";
arr = nz.toCharArray();
dump(arr);
</cfscript>
<!--- This file is part of Mura CMS.
Mura CMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, Version 2 of the License.
Mura CMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
public void createPartControl(Composite parent) {
Tree myTree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
myTree.setHeaderVisible(true);
myTreeViewer = new TreeViewer(executionTree);
myTreeViewer.setLabelProvider(new MyLabelProvider());
myTreeViewer.setContentProvider(new ContentProvider());
myTreeViewer..setInput(MyDataStore.getInstance());