code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
package com.zeny.express.framework.core;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| zyarch | trunk/framework/core/src/main/java/com/zeny/express/framework/core/App.java | Java | asf20 | 207 |
package com.zeny.express.framework.core.mybatis.dialect;
import java.util.Map;
/**
* Mysql方言的实现
*
* @author zhuwei
* @date 2013年8月18日 上午8:09:43
*/
public class MySQLDialect implements Dialect {
/**
* 数据库本身是否支持分页
*
* @author zhuwei
* @date 2013年8月18日 上午8:10:16
* @see com.zeny.express.framework.core.... | zyarch | trunk/framework/core/src/main/java/com/zeny/express/framework/core/mybatis/dialect/MySQLDialect.java | Java | asf20 | 1,374 |
package com.zeny.express.framework.core.mybatis.dialect;
import java.util.Map;
/**
* Oracle的方言实现
*
* @author zhuwei
* @date 2013年8月18日 下午5:01:25
*/
public class OracleDialect implements Dialect {
/**
* 数据库本身是否支持分页
*
* @author zhuwei
* @date 2013年8月18日 上午8:10:16
* @see com.zeny.express.framework.cor... | zyarch | trunk/framework/core/src/main/java/com/zeny/express/framework/core/mybatis/dialect/OracleDialect.java | Java | asf20 | 1,702 |
package com.zeny.express.framework.core.mybatis.dialect;
import java.util.Map;
/**
* 数据库方言
*
* @author zhuwei
* @date 2013年8月18日 上午8:06:43
*/
public interface Dialect {
/**
* 数据库是否支持分页当前的分页查询方式
*
* @author zhuwei
* @date 2013年8月18日 下午3:19:39
*/
public boolean supportsLimit();
... | zyarch | trunk/framework/core/src/main/java/com/zeny/express/framework/core/mybatis/dialect/Dialect.java | Java | asf20 | 808 |
package com.zeny.express.framework.core.mybatis.interceptor;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.M... | zyarch | trunk/framework/core/src/main/java/com/zeny/express/framework/core/mybatis/interceptor/PaginationInterceptor.java | Java | asf20 | 7,005 |
package com.zeny.express.framework.core;
import java.util.Date;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
public class Person {
@NotNull(message = "{validation.person.name}")
private String name;
@NotNull(message =... | zyarch | trunk/framework/core/src/test/java/com/zeny/express/framework/core/Person.java | Java | asf20 | 843 |
package com.zeny.express.framework.webapp.service;
import com.zeny.express.framework.shared.domain.User;
public interface WebApplicationManager {
User getUserByCode(String code);
}
| zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/service/WebApplicationManager.java | Java | asf20 | 198 |
package com.zeny.express.framework.webapp.support;
import java.util.Date;
import java.util.Map;
import org.apache.struts2.util.StrutsTypeConverter;
import com.zeny.express.framework.shared.util.DateUtils;
/**
* struts2日期转换类
*
* @author zhuwei
* @date 2013年10月30日 下午4:42:05
*/
@SuppressWarnings("... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/support/DateConverter.java | Java | asf20 | 1,466 |
package com.zeny.express.framework.webapp.support;
import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/support/I18nTextProvider.java | Java | asf20 | 3,664 |
package com.zeny.express.framework.webapp.support;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import javax.servlet.ServletContext;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/support/ModuleManager.java | Java | asf20 | 3,398 |
package com.zeny.express.framework.webapp.domain;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.List;
import com.zeny.express.framework.core.domain.Page;
import com.zeny.express.framework.webapp.excel.GridModel;
/**
* 导出参数类
*
* @author zhuwei
* @date 2013年8月28日 ... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/domain/ExportParams.java | Java | asf20 | 2,004 |
package com.zeny.express.framework.webapp.domain;
public class PageParams {
/**
* 当前页
*/
private Integer currentPage;
/**
* 页号
*/
private Integer pageSize;
/**
* 排序字段名称
*/
private String sortName;
/**
* 排序字段类型,asc或desc
*/
private String sortOrder;
/**
* 是否查询
... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/domain/PageParams.java | Java | asf20 | 1,697 |
package com.zeny.express.framework.webapp.interceptor;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.apache.struts2.ServletActi... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/interceptor/FrameworkInterceptor.java | Java | asf20 | 9,723 |
package com.zeny.express.framework.webapp.interceptor;
import org.apache.struts2.ServletActionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
import com.zeny.express.framework... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/interceptor/SecurityInterceptor.java | Java | asf20 | 2,603 |
package com.zeny.express.framework.webapp.tiles;
import org.apache.tiles.startup.TilesInitializer;
import org.apache.tiles.web.startup.AbstractTilesListener;
/**
* Tiles listener that executes {@link CompleteAutoloadTilesInitializer}.
*
* @version $Rev: 799008 $ $Date: 2009-07-29 14:46:16 -0400 (Wed, 29 Ju... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/tiles/CompleteAutoloadTilesListener.java | Java | asf20 | 599 |
package com.zeny.express.framework.webapp.tiles;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import org.apache.tiles.request.ApplicationContext;
import org.apache.tiles.request.ApplicationResource;
public class CompleteAutoloadTilesContainerFacto... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/tiles/CompleteAutoloadTilesContainerFactory.java | Java | asf20 | 1,291 |
package com.zeny.express.framework.webapp.tiles;
import javax.servlet.ServletContext;
import org.apache.tiles.factory.AbstractTilesContainerFactory;
import org.apache.tiles.request.ApplicationContext;
import org.apache.tiles.request.servlet.wildcard.WildcardServletApplicationContext;
import org.apache.tiles.st... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/tiles/CompleteAutoloadTilesInitializer.java | Java | asf20 | 1,298 |
package com.zeny.express.framework.webapp.filter;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.logging.Log;
import org... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/filter/LocaleRequestWrapper.java | Java | asf20 | 1,881 |
package com.zeny.express.framework.webapp.filter;
import java.io.IOException;
import java.util.Locale;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.i18... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/filter/FrameworkFilter.java | Java | asf20 | 2,617 |
package com.zeny.express.framework.webapp.excel;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.la... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/excel/ExcelExporter.java | Java | asf20 | 3,477 |
package com.zeny.express.framework.webapp.excel;
/**
* jqgrid column model
*
* @author zhuwei
* @date 2013年11月15日 上午10:20:06
*/
public class GridModel {
private String label;
private String name;
private String align;
private String index;
private String width;
private String form... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/excel/GridModel.java | Java | asf20 | 2,227 |
package com.zeny.express.framework.webapp.excel;
public class GridModelFormatOptions {
private String srcformat;
private String newformat;
private String suffix;
/**
* @return srcformat
*/
public String getSrcformat() {
return srcformat;
}
/**
* @param srcformat
*/
public voi... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/excel/GridModelFormatOptions.java | Java | asf20 | 798 |
package com.zeny.express.framework.webapp.grid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.zeny.express.framework.shared.domain.User;
import com.zeny.express.framework.webapp.ac... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/grid/GridColumnAction.java | Java | asf20 | 1,533 |
package com.zeny.express.framework.webapp.grid;
import java.util.Date;
import com.zeny.express.framework.shared.domain.BaseEntity;
public class GridColumnEntity extends BaseEntity {
private String gridId;
private String userCode;
private String userName;
private String active;
private Date ... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/grid/GridColumnEntity.java | Java | asf20 | 1,168 |
package com.zeny.express.framework.webapp.grid;
public interface GridColumnService {
GridColumnEntity query(String gridId, String userCode);
void save(String gridId, String userCode, String content);
void delete(String gridId, String userCode);
}
| zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/grid/GridColumnService.java | Java | asf20 | 275 |
package com.zeny.express.framework.webapp.grid;
public interface GridColumnEntityDao {
GridColumnEntity selectByCondition(GridColumnEntity entity);
int insert(GridColumnEntity entity);
int updateById(GridColumnEntity entity);
int deleteById(String id);
}
| zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/grid/GridColumnEntityDao.java | Java | asf20 | 285 |
package com.zeny.express.framework.webapp.grid;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zeny.express.framework.core.service.BaseService;
import com.zeny.expres... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/grid/GridColumnServiceImpl.java | Java | asf20 | 1,897 |
package com.zeny.express.framework.webapp.action;
import java.util.ArrayList;
import java.util.List;
/**
* 增、删、改、查Action
*
* @author zhuwei
* @date 2013年8月28日 上午11:01:50
*/
@SuppressWarnings("serial")
public abstract class BaseCrudAction extends BaseGridAction {
/**
* 编辑的ID
*/
protected ... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/action/BaseCrudAction.java | Java | asf20 | 1,152 |
package com.zeny.express.framework.webapp.action;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSour... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/action/BaseAction.java | Java | asf20 | 4,004 |
package com.zeny.express.framework.webapp.action;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.StringUtil... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/action/BaseGridAction.java | Java | asf20 | 5,783 |
package com.zeny.express.framework.webapp.context;
import com.zeny.express.framework.shared.domain.User;
/**
* 用户信息上下文
*
* @author zhuwei
* @date 2013年11月4日 下午2:44:59
*/
public final class UserContext {
private static final ThreadLocal<User> USER_STORE = new ThreadLocal<User>();
private UserCo... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/context/UserContext.java | Java | asf20 | 957 |
package com.zeny.express.framework.webapp.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Convenience class for setting and retrie... | zyarch | trunk/framework/webapp/src/main/java/com/zeny/express/framework/webapp/util/RequestUtil.java | Java | asf20 | 3,595 |
package com.zeny.express.framework.log.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* ANNOTATION... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/annotation/LogBusiness.java | Java | asf20 | 1,201 |
package com.zeny.express.framework.log.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* ANNOTATION... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/annotation/LogAction.java | Java | asf20 | 597 |
package com.zeny.express.framework.log.service;
import org.springframework.transaction.annotation.Transactional;
import com.zeny.express.framework.log.entity.ActionLogEntity;
import com.zeny.express.framework.log.entity.BusinessLog;
/**
* 日志持久化服务
*
* @author zhuwei
* @date 2013年10月19日 下午6:06:55
*/
... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/service/LogPersistenceService.java | Java | asf20 | 792 |
package com.zeny.express.framework.log.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zeny.express.framework.log.dao.ActionLogEntityDao;
import com.zeny.express.fram... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/service/impl/LogPersistenceServiceImpl.java | Java | asf20 | 1,849 |
package com.zeny.express.framework.log.support;
import java.lang.reflect.Method;
import java.util.Map;
import org.springframework.aop.support.AopUtils;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.expression.spel.support.StandardEvaluationContext;
import org.springframew... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/support/LazyParamAwareEvaluationContext.java | Java | asf20 | 2,589 |
package com.zeny.express.framework.log.support;
import java.lang.reflect.Method;
import org.springframework.util.Assert;
public class ExpressionRootObject {
private final Method method;
private final Object[] args;
private final Object target;
private final Class<?> targetClass;
public Ex... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/support/ExpressionRootObject.java | Java | asf20 | 958 |
package com.zeny.express.framework.log.entity;
import java.util.List;
public class BusinessLog extends BusinessLogEntity {
private List<BusinessLogDetailEntity> details;
/**
* @return details
*/
public List<BusinessLogDetailEntity> getDetails() {
return details;
}
/**
* @param details... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/entity/BusinessLog.java | Java | asf20 | 431 |
package com.zeny.express.framework.log.entity;
import java.util.Date;
import com.zeny.express.framework.shared.domain.BaseEntity;
/**
* Action日志实体
*
* @author zhuwei
* @date 2013年10月15日 下午4:38:09
*/
public class ActionLogEntity extends BaseEntity {
/**
* 用户编码
*/
private String userCode;
/**
* 用户名
... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/entity/ActionLogEntity.java | Java | asf20 | 6,682 |
package com.zeny.express.framework.log.entity;
import java.util.Date;
import com.zeny.express.framework.shared.domain.BaseEntity;
/**
* 业务日志信息实体
*
* @author zhuwei
* @date 2013年10月17日 上午9:27:36
*/
public class BusinessInfoEntity extends BaseEntity {
/**
* 业务编码
*/
private String business... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/entity/BusinessInfoEntity.java | Java | asf20 | 3,331 |
package com.zeny.express.framework.log.entity;
import java.util.Date;
import com.zeny.express.framework.shared.domain.BaseEntity;
/**
* 业务日志明细实体
*
* @author zhuwei
* @date 2013年10月17日 上午9:27:08
*/
public class BusinessLogDetailEntity extends BaseEntity {
/**
* 业务ID
*/
private String bus... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/entity/BusinessLogDetailEntity.java | Java | asf20 | 2,016 |
package com.zeny.express.framework.log.entity;
import java.util.Date;
import com.zeny.express.framework.shared.domain.BaseEntity;
/**
* 业务日志实体
*
* @author zhuwei
* @date 2013年10月17日 上午9:24:27
*/
public class BusinessLogEntity extends BaseEntity {
/**
* ACTION ID
*/
private String actionId;
/**
* 系统编... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/entity/BusinessLogEntity.java | Java | asf20 | 3,125 |
package com.zeny.express.framework.log.log4j;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.log4j.Appender;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.spi.LoggingEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zeny.express.framewor... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/log4j/DBLogAppender.java | Java | asf20 | 1,808 |
package com.zeny.express.framework.log.log4j;
import org.apache.log4j.AsyncAppender;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
/**
* Asynchronous Logger Factory
*
* @author zhuwei
* @date 2013年10月12日 上午11:36:01
*/
public class AsyncLoggerFactory {
/**
* 工厂
*/
private... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/log4j/AsyncLoggerFactory.java | Java | asf20 | 1,584 |
package com.zeny.express.framework.log.dao;
import com.zeny.express.framework.log.entity.BusinessLogEntity;
/**
* 业务日志实体DAO
*
* @author zhuwei
* @date 2013年10月19日 下午5:56:06
*/
public interface BusinessLogEntityDao {
int insert(BusinessLogEntity entity);
}
| zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/dao/BusinessLogEntityDao.java | Java | asf20 | 302 |
package com.zeny.express.framework.log.dao;
public interface BusinessInfoEntityDao {
}
| zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/dao/BusinessInfoEntityDao.java | Java | asf20 | 96 |
package com.zeny.express.framework.log.dao;
import com.zeny.express.framework.log.entity.BusinessLogDetailEntity;
/**
* 业务日志明细实体DAO
*
* @author zhuwei
* @date 2013年10月19日 下午5:56:22
*/
public interface BusinessLogDetailEntityDao {
int insert(BusinessLogDetailEntity entity);
}
| zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/dao/BusinessLogDetailEntityDao.java | Java | asf20 | 326 |
package com.zeny.express.framework.log.dao;
import com.zeny.express.framework.log.entity.ActionLogEntity;
/**
* ACTION日志DAO
*
* @author zhuwei
* @date 2013年10月17日 上午9:40:30
*/
public interface ActionLogEntityDao {
/**
* 插入ACTION日志
*
* @author zhuwei
* @date 2013年10月17日 上午9:40:32
* ... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/dao/ActionLogEntityDao.java | Java | asf20 | 429 |
package com.zeny.express.framework.log.aop;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.framework.AopProxyUtils;
import com.zen... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/aop/BusinessInterceptor.java | Java | asf20 | 3,183 |
package com.zeny.express.framework.log.aop;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/aop/BusinessAspectSupport.java | Java | asf20 | 6,157 |
package com.zeny.express.framework.log.aop;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.expre... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/aop/BusinessExpressionEvaluator.java | Java | asf20 | 3,418 |
package com.zeny.express.framework.log.aop;
import com.zeny.express.framework.shared.domain.BaseObject;
public class BusinessOperation extends BaseObject {
private String entityId = "";
private String entityCode = "";
private String entityName = "";
/**
* @return entityId
*/
public String getE... | zyarch | trunk/framework/log/src/main/java/com/zeny/express/framework/log/aop/BusinessOperation.java | Java | asf20 | 917 |
package com.zeny.express.framework.log.service.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.zeny.express.framework.log.Person;
import com.zeny.express.framework.log.service.LoggableService;
@Service
public... | zyarch | trunk/framework/log/src/test/java/com/zeny/express/framework/log/service/impl/LoggableServiceImpl.java | Java | asf20 | 877 |
package com.zeny.express.framework.log.service;
import java.util.List;
import com.zeny.express.framework.log.Person;
import com.zeny.express.framework.log.annotation.LogBusiness;
public interface LoggableService {
@LogBusiness(businessCode = "abcd")
void logme();
@LogBusiness(businessCode = "abcd", ... | zyarch | trunk/framework/log/src/test/java/com/zeny/express/framework/log/service/LoggableService.java | Java | asf20 | 698 |
package com.zeny.express.framework.log;
import com.zeny.express.framework.shared.domain.BaseEntity;
public class Person extends BaseEntity {
private String code;
private String name;
private int age;
/**
* @return code
*/
public String getCode() {
return code;
}
/**
* @param code
... | zyarch | trunk/framework/log/src/test/java/com/zeny/express/framework/log/Person.java | Java | asf20 | 725 |
package com.zeny.express.framework.mq;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanNameAware;
import com.zeny.express.framework.shared.exception.ApplicationException;
public c... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/ShardedMqClient.java | Java | asf20 | 4,463 |
package com.zeny.express.framework.mq;
import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool;
/**
* refer to : redis.clients.util.Pool
*/
public abstract class AbstractMqPool<T> {
private final GenericObjectPool internalPool;
public AbstractMqPool(... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/AbstractMqPool.java | Java | asf20 | 1,567 |
package com.zeny.express.framework.mq;
import com.zeny.express.framework.shared.serializer.Serializer;
public abstract class AbstractMqClient<T> {
public static final int DATA_FORMAT_BINARY = 1;
public static final int DATA_FORMAT_TEXT = 2;
protected Serializer<T> dataBinarySerializer;
protected Serial... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/AbstractMqClient.java | Java | asf20 | 1,365 |
package com.zeny.express.framework.mq.ibmmq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ibm.mq.MQC;
import com.ibm.mq.MQException;
import com.ibm.mq.MQQueue;
import com.ibm.mq.MQQueueManager;
import com.zeny.express.framework.mq.AbstractMqPool;
import com.zeny.express.framework.mq.M... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/ibmmq/IBMMqTemplate.java | Java | asf20 | 2,101 |
package com.zeny.express.framework.mq.ibmmq;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ibm.mq.MQC;
import com.ibm.mq.MQException;
import com.ibm.mq.MQGetMessageOptions;
import com.ibm.mq.MQMessage;
import com.ibm.mq.MQPutMessageOptions;
import com.ibm... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/ibmmq/IBMMqClient.java | Java | asf20 | 2,652 |
package com.zeny.express.framework.mq.ibmmq;
import java.util.Hashtable;
import org.apache.commons.pool.BasePoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool.Config;
import com.ibm.mq.MQC;
import com.ibm.mq.MQEnvironment;
import com.ibm.mq.MQQueue;
import com.ibm.mq.MQQueueManage... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/ibmmq/IBMMqPool.java | Java | asf20 | 3,725 |
package com.zeny.express.framework.mq;
import org.apache.commons.pool.impl.GenericObjectPool.Config;
/**
* refer to : JedisPoolConfig
*/
public class MqPoolConfig extends Config {
public MqPoolConfig() {
// defaults to make your life with connection pool easier :)
setTestWhileIdle(true);
setMinEvi... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/MqPoolConfig.java | Java | asf20 | 2,644 |
package com.zeny.express.framework.mq.activemq;
import javax.jms.JMSException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zeny.express.framework.mq.AbstractMqClient;
import com.zeny.express.framework.mq.MqCallback;
import com.zeny.express.framework.shared.serializer.JsonSerializer;
... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/activemq/ActiveMqClient.java | Java | asf20 | 1,721 |
package com.zeny.express.framework.mq.activemq;
import javax.jms.BytesMessage;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.DeliveryMode;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
impor... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/activemq/ActiveMqQueueHandler.java | Java | asf20 | 2,507 |
package com.zeny.express.framework.mq.activemq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zeny.express.framework.mq.AbstractMqPool;
import com.zeny.express.framework.mq.MqCallback;
import com.zeny.express.framework.shared.exception.ApplicationException;
public class ActiveMqTemplat... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/activemq/ActiveMqTemplate.java | Java | asf20 | 1,388 |
package com.zeny.express.framework.mq.activemq;
import org.apache.activemq.ActiveMQConnection;
import org.apache.commons.pool.BasePoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool.Config;
import com.ibm.mq.MQQueue;
import com.zeny.express.framework.mq.AbstractMqPool;
/**
* refer... | zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/activemq/ActiveMqPool.java | Java | asf20 | 2,388 |
package com.zeny.express.framework.mq;
public class MqConnectionException extends RuntimeException {
public MqConnectionException(String message, Throwable cause) {
super(message, cause);
}
}
| zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/MqConnectionException.java | Java | asf20 | 215 |
package com.zeny.express.framework.mq;
public abstract class MqCallback<T, X> {
public abstract T doInMq(X x) throws Exception;
}
| zyarch | trunk/framework/mq/src/main/java/com/zeny/express/framework/mq/MqCallback.java | Java | asf20 | 141 |
package com.zeny.express.framework.mq;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Father extends Man {
private List<Son> sonList = new ArrayList<Son>();
private Set<Son> sonSet = new HashS... | zyarch | trunk/framework/mq/src/test/java/com/zeny/express/framework/mq/Father.java | Java | asf20 | 1,856 |
package com.zeny.express.framework.mq;
public class Son extends Man {
private Father father;
public Father getFather() {
return father;
}
public void setFather(Father father) {
this.father = father;
}
}
| zyarch | trunk/framework/mq/src/test/java/com/zeny/express/framework/mq/Son.java | Java | asf20 | 228 |
package com.zeny.express.framework.mq;
import java.util.Date;
public class Man {
private String name;
private int age;
private Date birthDate;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
pu... | zyarch | trunk/framework/mq/src/test/java/com/zeny/express/framework/mq/Man.java | Java | asf20 | 1,001 |
#include <OneWire.h>
int oldseconds = 0;
byte RTCaddr[8];
OneWire ds(8); // on pin 10
void setup(void) {
Serial.begin(9600);
SetupRTC();
}
void SetupRTC()
{
ds.search(RTCaddr);
ds.reset_search();
}
int GetTimestamp()
{
uint32_t timestamp;
byte data[8];
int i;
ds.reset();
ds.select(RTCaddr);... | zyberphish | trunk/RTC_READPRINT.pde | Processing | gpl2 | 1,207 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/GcmBroadcastReceiver.java | Java | asf20 | 1,788 |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | zyf404283839-push | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/GcmIntentService.java | Java | asf20 | 4,598 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/DemoActivity.java | Java | asf20 | 9,852 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/Datastore.java | Java | asf20 | 2,049 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/UnregisterServlet.java | Java | asf20 | 1,429 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/HomeServlet.java | Java | asf20 | 2,340 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/BaseServlet.java | Java | asf20 | 2,802 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/RegisterServlet.java | Java | asf20 | 1,450 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/SendAllMessagesServlet.java | Java | asf20 | 5,498 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/ApiKeyInitializer.java | Java | asf20 | 2,369 |
<jsp:forward page="/home"/>
| zyf404283839-push | samples/gcm-demo-server/WebContent/index.jsp | Java Server Pages | asf20 | 28 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/Datastore.java | Java | asf20 | 8,837 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/UnregisterServlet.java | Java | asf20 | 1,429 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/HomeServlet.java | Java | asf20 | 2,295 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/BaseServlet.java | Java | asf20 | 2,802 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/SendMessageServlet.java | Java | asf20 | 7,021 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/RegisterServlet.java | Java | asf20 | 1,450 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/SendAllMessagesServlet.java | Java | asf20 | 3,528 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyf404283839-push | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/ApiKeyInitializer.java | Java | asf20 | 2,712 |
<jsp:forward page="/home"/>
| zyf404283839-push | samples/gcm-demo-appengine/WebContent/index.jsp | Java Server Pages | asf20 | 28 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/CommonUtilities.java | Java | asf20 | 1,993 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/GCMIntentService.java | Java | asf20 | 4,223 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/ServerUtilities.java | Java | asf20 | 7,034 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/DemoActivity.java | Java | asf20 | 5,509 |
/** Automatically generated file. DO NOT MODIFY */
package com.google.android.gcm;
public final class BuildConfig {
public final static boolean DEBUG = true;
} | zyf404283839-push | gcm-client-deprecated/gen/com/google/android/gcm/BuildConfig.java | Java | asf20 | 164 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | gcm-client-deprecated/src/com/google/android/gcm/GCMConstants.java | Java | asf20 | 6,105 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyf404283839-push | gcm-client-deprecated/src/com/google/android/gcm/GCMLogger.java | Java | asf20 | 1,530 |