自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 资源 (2)
  • 收藏
  • 关注

原创 android 添加 新建 增加 新增 联系人

android 添加 新建 增加 新增 联系人

2013-12-20 13:54:26 1024

原创 android View 绘制流程

1  draw   background2  绘制自身 :  onDraw  3 绘制孩子 :  dispatchDraw  http://item.taobao.com/item.htm?spm=a1z10.1.w4004-4695934438.10.KJrVA1&id=36467979623

2013-12-09 14:51:36 724

原创 如何让一个activity只要不在显示的时候就finish掉呢? FLAG_ACTIVITY_NO_HISTORY

FLAG_ACTIVITY_NO_HISTORY :If set, the new activity is not kept in the history stack. As soon as the user navigates away from it, the activity is finished. This may also be set with the noHistoryattribute.

2013-12-09 10:41:48 2925 2

原创 Parcel.writeStrongBinder 与 Parcel.writeStrongInterface 的区别

Parcel.writeStrongBinder 与 Parcel.writeStrongInterface 的区别

2013-11-29 17:50:18 1834

原创 startActivityIfNeeded 何时 不启动 activity ?

startActivityIfNeeded 何时 不启动 activity ?

2013-11-29 17:06:49 5373

原创 android StrongBinder 实现双工通信

如果有这样的需求: 客户端访问服务端所提供的接口,但是服务端 想回调客户端的方法,这个时候应该怎么实现呢?举个例子,ActivityManagerService 中,客户端请求启动一个activity ,那么原来的activity 需要pause,这个时候 服务端需要通知客户端,这个是怎么实现的呢? 是通过   android.app.IApplicationThread. schedulePau

2013-11-29 12:06:24 2421 1

原创 不采用AIDL文件的service

服务:package com.example.test3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;import android.os.Parcel;import and

2013-11-29 11:18:02 723

原创 Spring 方法拦截示例

/** *  */package com;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;/** * @author Administrator w

2008-12-08 17:08:00 1072

原创 ObjectUtils

 /* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li

2008-12-08 16:03:00 1805

原创 SystemPropertyUtils

 /* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li

2008-12-08 15:06:00 1692

原创 assert

/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the Licen

2008-12-08 14:39:00 1213

原创 hibernate双向一对一

xml version="1.0" encoding="GB2312"?>    hibernate-mapping>        class name="person.Org"           table="ZY_org">      id name="id" type="long">          generator c

2008-09-24 09:52:00 762

原创 XFire header 代码

import java.lang.reflect.Proxy;import net.BookServiceClient;import net.BookServicePortType;import org.codehaus.xfire.client.XFireProxy;public class XFireClient2 {    /**     * 

2008-08-08 17:32:00 1661

原创 XFire使用WSDL生成客户端代码

WSDL 如下:  xml version="1.0" encoding="UTF-8"?>wsdl:definitions targetNamespace="http://xfire.codehaus.org/BookService" xmlns:tns="http://xfire.codehaus.org/BookService" xmlns:wsdlsoap="htt

2008-08-08 15:18:00 4728

原创 XFire客户端

import java.net.MalformedURLException;import java.net.URL;import org.codehaus.xfire.client.Client;public class XFireClient {    /**     * @param args     */    public static void

2008-08-08 14:02:00 1123

原创 XFire入门

package org.codehaus.xfire.demo;public interface BookService{    public String  getBooks();}    package org.codehaus.xfire.demo;public class BookServiceImpl

2008-08-07 14:36:00 779

原创 javascript代码2

var recieverOptions=document.manageForm.leaderZihao.options;        for(var i=0;i        {            recieverOptions[i].selected=true;        }                

2008-08-06 18:04:00 307

原创 有关构造器的代码

package com.test2;public class TT {            public  TT()    {                System.out.println("super");    }        }package com;import com.test2.TT;

2008-08-06 13:05:00 586

原创 axis 客户端代码

package com.futuresoftware.oaagent;import org.apache.axis.client.Call;import org.apache.axis.client.Service;public class AxisClient {    /**     * @param args     */    public 

2008-08-05 16:13:00 2291

转载 JDK 6 新功能

  Collections Framework EnhancementsThis page summarizes enhancements to the collections framework in Java SE 6. This release saw fewer API changes than 5.0, but there was more of a f

2008-08-05 13:37:00 724

原创 学习 java langspec-3.0. 规范后的代码

 package com;public interface gg { public void ss(); }package com;public abstract class tt { public void ss() { }}package com;public cla

2008-07-31 19:46:00 634

原创 javascript代码

  var objSelect = document.getElementById("dispatchType"); for (var i = 0; i < objSelect.options.length; i++) { if (objSelect.options[i].text =

2008-07-31 18:33:00 448

原创 tomcat中设置数据源

在 conf/Catalina/localhost  建立  oa.xml.内容如下 <!--<Resource name="jdbc/LiferayPool" auth="Container" type="javax.sql.DataSource" driverClassName="com.ibm.db2.jcc.DB

2008-07-28 10:11:00 504

原创 正则表达式

匹配电话号码: 029-8838622, 或者0912-52142254,包括两端有空格的情况:  (//s)*0(//d){2,3}-(//d){7,8}(//s)*

2008-07-28 09:08:00 361

原创 阅读java解惑之后的代码

public class ShadesOfGray { public static void main(String[] args){ System.out.println(X.Y.Z); }}class X { static class Y { static String Z = "Black"; }

2008-07-28 08:25:00 521

原创 关于try catch finally的一段测试代码

import java.io.File;public class Mian { static String f() { try { File f=new File("ss"); f.exists(); return s(); } catch (RuntimeException e) {

2008-07-23 16:10:00 786 1

原创 java多线程同步的一个例子

 public class Thread3 implements Runnable { Integer i = 1; public Thread3() { } public void run() { String threadName = Thread.currentThread().getName(); if (threadName.equals(

2008-07-23 15:25:00 2093 1

原创 weblogic中的2种事务模式:容器管理的事务和 bean管理的事务

 在 weblogic中只支持两种事务:容器管理的事务和 bean管理的事务。在默认情况下 ejb使用的都是容器管理的事务 ,容器管理的事务是自动开始的。那在容器管理的事务的ejb中,怎么回滚事务呢?应该使用EJBContext.setRollbackOnly. 那如何得到EJBContext呢? 是通过注解: @Resource EJBContext  context;

2007-12-03 13:43:00 1622

原创 weblogic10+eclipse 开发ejb3

首先安装jdk5.0和weblogic10,并启动weblogic服务器。1  业务接口:Test/************************************************************* *本文件归属于西安协同时光软件有限公司,未经许可,不得擅自使用、拷贝和修改 *项目组:ESB小组 *版 本: SychroESB1.0 *日 期:2007-11-29 

2007-11-30 18:03:00 1976

原创 Hibernate annotations系列之双向一对一

Address.java  package one2one;import java.io.Serializable;import javax.persistence.CascadeType;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persiste

2007-11-22 15:25:00 585

原创 hibernate session 的get 与load的区别

为了区别 load 与 get的 方法的差异 ,特作了以下测试:  实体类: Address.java    package one2one;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;imp

2007-11-22 09:58:00 1007

原创 Hibernate annotations系列之继承关系

Furniture 继承 Woody ,Woody 继承 Thingy  。各个代码如下:  Thingy.java //$Id: Thingy.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations.access;import javax.persistence.M

2007-11-21 11:40:00 2891

原创 Hibernate annotations one2one with WithExplicitFk 单向一对一 有外键

Client 的代码: //$Id: Client.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations.onetoone;import javax.persistence.CascadeType;import javax.persistence.Entity;import j

2007-11-21 10:34:00 711

原创 Hibernate annotations 入门

首先确保你的classpath中加入了 hibernate-annotations.jar   ejb3-persistence.jar  hibernate-commons-annotations.jar以及hibernate的其他jar包;  hibernate.cfg.xml 的内容:    "-//Hibernate/Hibernate Configuration DTD 3.

2007-11-20 09:37:00 1060

原创 Hibernate系列之继承关系:每个类一张表

映射文件如下,其他和上篇文章一样:http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >                                                              

2007-11-19 15:01:00 483

原创 Hibernate系列之继承关系:共用一个表

hibernate.cfg.xml 的内容:          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> sa   jdbc:mysql://localhost:3306/d

2007-11-19 14:49:00 645

eclipse中jsp编写

希望大家支持

2007-01-11

eclipse使用入门

eclipse使用入门,如可以继续录制后续内容

2007-01-11

空空如也

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

TA关注的人

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