This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dynamically create a Javabean from Interfaces. | |
* It's ugly, but works ;) | |
* | |
*/ | |
@Grapes(@Grab(group='cglib', module='cglib', version='3.1')) | |
import net.sf.cglib.beans.* | |
import net.sf.cglib.proxy.* | |
interface Test { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Aspect | |
public class WebServiceAspect { | |
@Pointcut("execution(public * com.service..*Service.*(..))") | |
void allService() {} | |
@Around("allService()") | |
@SuppressWarnings({ "rawtypes", "unchecked" }) | |
public Object depressException(ProceedingJoinPoint joinPoint) throws Throwable { | |
MethodSignature signature = (MethodSignature) joinPoint.getSignature(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BackboneJqGridReader = function(colleciton, grid) { | |
return function(postdata) { | |
var submitData = _.extend({}, postdata); | |
Backbone.sync("read", colleciton, { | |
attrs: submitData, | |
cache: false, | |
contentType: "application/json", | |
processData: false, | |
type: "POST", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ruby-dev | |
sudo gem install rdoc | |
sudo gem install guard | |
sudo gem install guard-livereload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.grid.jqGrid("setGridParam", { | |
serializeGridData: self.serializeData, | |
url: self.executionUrl, | |
datatype: "json", | |
ajaxGridOptions: { | |
cache: false, | |
contentType: "application/json", | |
processData: false, | |
type: "POST" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gss.tds.dc.struts2.action; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.ResourceBundle; |
NewerOlder