自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 资源 (1)
  • 收藏
  • 关注

scala-lift

必须要求5个字。。。

2010-03-15 16:21:36 116

原创 Jpa-hibernate-spring and compass search enginer

初始化Bean,实现Spring运行加载[code="java"]public class CompassIndexBuilder implements InitializingBean{ private boolean buildIndex = false; private int lazySecond =10; private CompassGps compassG...

2009-10-21 15:11:14 135

原创 EntityBeanSet

[code="java"]package org.jboss.seam.contexts;import java.util.ArrayList;import java.util.HashSet;import java.util.List;import java.util.Set;/** * Swizzles entities held in the conver...

2009-09-23 17:08:15 276

原创 EntityBeanMap

[code="java"] package org.jboss.seam.contexts;import java.util.HashMap;import java.util.Map;import java.util.Set;/** * Swizzles entities held in the conversation context at * the end...

2009-09-23 17:07:28 92

原创 EntityBeanList

[code="java"]package org.jboss.seam.contexts;import java.util.ArrayList;import java.util.Iterator;import java.util.List;/** * Swizzles entities held in the conversation context at * ...

2009-09-23 17:03:05 138

原创 AbstractEntityBeanCollection

[code="java"]以容器方式保存钝化是EntityBeanspackage org.jboss.seam.contexts;abstract class AbstractEntityBeanCollection implements Wrapper{ private transient boolean initialized; //是否初始化 ...

2009-09-23 16:59:00 151

原创 EntityBean

[code="java"] EntityBean 主要用来保存一个Entity的对象,同时操作PassivateEntity对保存的实体进行钝化或者激活. 也可以说是对EntityBean的包装,当对一个EntityBean包装时,便可以对此Entity进行精确的version控制 package org.jboss.seam.contexts;import static or...

2009-09-23 16:38:15 145

原创 PassivatedEntity

[code="java"] 注意:PersistenceContext未确切了解,是否是每个钝化对象对应一个,是否是跟线程Contexts有关. 应该是跟线程Contexts关联,因为可能有多个数据源 package org.jboss.seam.contexts;import java.io.Serializable;import javax.persisten...

2009-09-23 16:25:51 93

原创 ComponentType

[code="java"] 有4中bean EJB规范3中 Entity JAVA_BEAN //$Id: ComponentType.java 5355 2007-06-20 20:42:22Z gavin $package org.jboss.seam;import static org.jboss.seam.ScopeType.CONVERSATION;import ...

2009-09-23 15:58:54 825

原创 ScopeType

[code="java"] ScopeType与Context相关/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam;im...

2009-09-23 15:56:19 413

原创 Seam

[code="java"]以Key-组件Class Value-组件@Name内的名称,名称缓存同时缓存EJB部署描述符及EJB类加载器//$Id: Seam.java 10262 2009-04-01 07:03:21Z dan.j.allen $package org.jboss.seam;import static org.jboss.seam.ComponentTy...

2009-09-23 15:52:41 365

原创 Entity

[code="java"] 继承Model,以Key-name Value-class保存Entity,统一保存在ApplicationContext中 Entity主要是保存@Entity的生命周期方法以及Entity的名称. package org.jboss.seam;import java.lang.reflect.AccessibleObject;impor...

2009-09-23 15:23:25 236

原创 Model

[code="java"] Seam中含有三种组建 1.Model 2.Entity 3.Component 2继承1 3继承1 Seam中的内部对象不是为Mode就是Entity 用Model可以包装@Name标记的类Class 同时Component继承Model,对Class进行一些复杂的处理 package org.jboss.seam;i...

2009-09-23 15:05:03 101

BijectionInterceptor

[code="java"]//$Id: BijectionInterceptor.java 9561 2008-11-14 03:26:13Z dan.j.allen $package org.jboss.seam.core;import java.util.concurrent.locks.ReentrantLock;import org.jboss.seam.Compo...

2009-09-22 16:59:35 95

原创 JPA cache

[code="java"] PersistenceContext Level2 Cache Extend PersistenceContext . 二级缓存优缺点The advantages of L2 caching are: * avoids database access for already loaded entities * faster for re...

2009-09-22 16:13:22 91

原创 JPA Performance, Don't Ignore the Database

[code="java"]1.数据类型 应该使用小的数据类型,特别是建立索引的字段,小的数据类型和索引能加快数据查询.2.规范化 数据库设计的三大范式,规范化减少了数据冗余,故而查询时要进行多边链接,但对表更新比较快;非规范化则恰恰相反,应正确处理此关系 规范化查询比较慢,但我们可以缓存它.3.JPA继承结构映射 1.单表对象每个类 查询较快...

2009-09-22 15:58:26 91

原创 Type safe,what would yout need a Collections.checkSet?

[code="java"]In one of the first posts on this blog I have discussed the problem of type checking (or lack of it) in some of Java collections even when using generics. Today I want to show you a sim...

2009-09-22 09:07:18 104

EZMorph ----使用

[code="java"] EZMorph is simple java library for transforming an Object to another Object. EZMorph's key strenghts are: * Supports transformations for primitives and Objects * Suppo...

2009-09-15 17:31:52 813

SeamListener -- 设置有关Contexts上下文的入口

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.servlet;import javax.servl...

2009-08-01 17:02:58 121

与Servlet相关的LifeCycle

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.contexts;import javax.serv...

2009-08-01 17:01:48 145

上下文相关的生命周期处理 LifeCycle

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.contexts;import java.util....

2009-08-01 16:55:53 190

原创 Seam Contexts 核心

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.contexts;import java.util....

2009-08-01 16:46:27 121

原创 Preferences -- about -Reflections warpped reflection

[code="java"]//$Id: Reflections.java 9572 2008-11-15 22:33:10Z [email protected] $package org.jboss.seam.util;import java.beans.Introspector;import java.lang.annotation.Annotation;imp...

2009-08-01 15:04:14 151

原创 Preferences -- PreferenceValue example

[code="java"]package org.jboss.seam.wiki.core.preferences;import org.jboss.seam.ScopeType;import org.jboss.seam.annotations.*;import org.jboss.seam.log.Log;import org.jboss.seam.wiki.core....

2009-08-01 14:54:02 72

原创 Preferences -- PreferenceProvider the Implment

[code="java"]package org.jboss.seam.wiki.core.preferences;import org.jboss.seam.ScopeType;import org.jboss.seam.annotations.*;import org.jboss.seam.log.Log;import org.jboss.seam.wiki.core....

2009-08-01 14:52:41 87

原创 Preferences -- PreferenceValue the Implment

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.wiki.core.preferences;impo...

2009-08-01 14:38:41 152

原创 Preferences -- PreferenceValue the Hibernate user define type

[code="java"]package org.jboss.seam.wiki.core.preferences;import org.hibernate.HibernateException;import org.hibernate.Hibernate;import org.hibernate.type.Type;import org.hibernate.usertyp...

2009-08-01 14:37:28 71

原创 Preferences -- PreferenceValue and Visibility and Template

[code="java"]package org.jboss.seam.wiki.preferences;import org.jboss.seam.wiki.preferences.metamodel.PreferenceEntity;public interface PreferenceValue { public Object getValue(); ...

2009-08-01 14:35:52 68

原创 Preferences -- RealPreferences

[code="java"]package org.jboss.seam.wiki.preferences;import org.jboss.seam.ScopeType;import org.jboss.seam.Component;import org.jboss.seam.annotations.*;import org.jboss.seam.log.Log;imp...

2009-08-01 14:33:24 72

原创 Preferences -- Registry

[code="java"]package org.jboss.seam.wiki.preferences.metamodel;import org.jboss.seam.Component;import org.jboss.seam.ScopeType;import org.jboss.seam.annotations.Create;import org.jboss.sea...

2009-08-01 14:26:57 75

原创 Preferences -- matemodel

[code="java"]package org.jboss.seam.wiki.preferences.metamodel;import org.hibernate.validator.ClassValidator;import org.hibernate.validator.InvalidValue;import org.hibernate.validator.NotNul...

2009-08-01 14:20:35 69

原创 Preferences -- Anotation

[code="java"]package org.jboss.seam.wiki.preferences.annotations;import org.jboss.seam.wiki.preferences.PreferenceVisibility;import java.lang.annotation.ElementType;import java.lang.annota...

2009-08-01 14:19:22 62

原创 WIkiCatchImageValidator --验证验证码

[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of license at gnu.org. */package org.jboss.seam.wiki.core.captcha;import o...

2009-08-01 14:13:44 145

原创 CaptchaImage -- 资源管理 -- resource filter

[code="java"]package org.jboss.seam.captcha;import static org.jboss.seam.ScopeType.APPLICATION;import static org.jboss.seam.annotations.Install.BUILT_IN;import java.io.ByteArrayOutputStrea...

2009-08-01 14:01:54 171

原创 Captcha

[code="java"]package org.jboss.seam.wiki.core.captcha;import org.jboss.seam.ScopeType;import org.jboss.seam.annotations.Install;import org.jboss.seam.annotations.Name;import org.jboss.seam...

2009-08-01 13:59:15 86

原创 格式url成urlrewirte.xml配置path

1.urlrewirte是以正则表达式必配path的,request path 翻译成服务器识别,故response path应该翻译成浏览器识别.[code="java"]/* * JBoss, Home of Professional Open Source * * Distributable under LGPL license. * See terms of lic...

2009-08-01 13:16:11 129

原创 MD5加密

[code="java"]package org.jboss.seam.wiki.util;import java.security.MessageDigest;import org.jboss.seam.annotations.Name;import org.jboss.seam.annotations.AutoCreate;/** * Not super s...

2009-08-01 12:46:51 67

原创 Base64编码/解码

BASE64编码规则及JAVA中的使用 收藏 一、编码规则:Base64编码要求把3个8位字节(3*8=24)转化为4个6位的字节(4*6=24),之后在6位的前面补两个0,形成8位一个字节的形式。 例如字符串“张3” :11010101 11000101 00110011 转换后:00110101 00011100 00010100 00110011 用十进制...

2009-08-01 12:42:58 90

原创 AuthenticationFilter

[code="java"]@Scope(APPLICATION)@Name("org.jboss.seam.web.authenticationFilter")@Install(value = false, precedence = BUILT_IN)@BypassInterceptors@Filter(within = "org.jboss.seam.web.exceptio...

2009-07-31 15:08:14 1108

原创 AbstractFilter -- match url pattern

[code="java"]package org.jboss.seam.web;import java.util.regex.Pattern;import javax.servlet.Filter;import javax.servlet.FilterConfig;import javax.servlet.ServletContext;import javax.se...

2009-07-31 14:54:35 251

安卓开发神器,必读

安卓开发神器,必读

2013-05-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除