服务注册与发现的中心,服务的提供者将服务发布到注册中心,服务的使用着到注册中引用服务。
Dubbo的注册中心提供了多种实现,其实现是基于dubbo的spi的扩展机制的,使用着可以直接实现自己的注册中心。
@SPI("dubbo")
public interface RegistryFactory {
/**
* 连接注册中心.
* 连接注册中心需处理契约...
分类:
其他好文 时间:
2014-12-02 22:42:24
阅读次数:
226
通过看jdk源码发现Java字符串中有如下关系:
接口中的方法默认都是抽象的可以写也可以不写。
public interface CharSequence {
int length();
char charAt(int index);
CharSequence subSequence(int start, int end);
...
分类:
编程语言 时间:
2014-12-02 22:38:36
阅读次数:
254
java.io.Serializable浅析 Java API中java.io.Serializable接口源码:1 public interface Serializable {2 } 类通过实现java.io.Serializable接口可以启用其序列化功能。未实现次接口的类无法使其任何状态.....
分类:
编程语言 时间:
2014-12-02 22:28:38
阅读次数:
255
#import @interface ViewController : UITableViewController@property (weak, nonatomic) IBOutlet UILabel *Label1;- (IBAction)onClick:(id)sender;@end为了将事件...
分类:
其他好文 时间:
2014-12-02 20:36:08
阅读次数:
185
#import
@interface UILabel (dynamicSize)
-(float)resizeToFit;
-(float)expectedHeight;
@end
#import "UILabel+dynamicSize.h"
@implementation UILabel (dynamicSize)
-(float)resizeToFit{
float ...
分类:
其他好文 时间:
2014-12-02 19:15:19
阅读次数:
186
什么是ONVIF ?ONVIF:原意为开放型网络视频接口论坛,即Open Network Video Interface Forum,是安讯士、博世、索尼等三家公司在2008年共同成立的一个国际性 开放型 网络视频产品 标准网络接口 的开发论坛,后来由这个技术开发论坛共同制定的开放性行业标准,就用该...
分类:
其他好文 时间:
2014-12-02 19:11:45
阅读次数:
201
1、数据访问层DAO的设计(已该工程为例)
(1)首先定义一个接口,规范算法框架。(若子类和基类有很多公用的东西,则应该设计成抽象类)
package com.way.chat.dao public interface UserDao {
//注册成功返回用户id
public int register(User u);
public ArrayList login(User u);
...
分类:
其他好文 时间:
2014-12-02 16:42:01
阅读次数:
135
Ubuntu环境下,配置无线网络,下面是一个脚本:#!/bin/sh
set -e
NETWORK_INTERFACE="/etc/network/interfaces"
WIFI_CONFIG="/etc/wifi_config.conf"
if [ $# -ne 2 ]
then
echo "input parameters number error"
echo "example:"
...
分类:
系统相关 时间:
2014-12-02 15:17:20
阅读次数:
290
第三章面向对象(一)1.(了解)面向对象和面向过程2.面向对象的编程关注于类的设计1)一个项目或者工程,不管多么庞大,一定是由一个一个的类构成2)类是抽象的,好比是制造汽车的图纸,车是由图纸制造的,其实就是类的实例化3完成一个项目(功能)的思路1)所需要完成的功能对应的..
分类:
编程语言 时间:
2014-12-02 12:05:56
阅读次数:
199
activiti 细节总结: 1,listpage方法: 1),API:listPage(int, int)?- Method in interface org.activiti.engine.query.Query Executes the query and get a list of entities as the result. 2),listPage(...
分类:
其他好文 时间:
2014-12-02 10:41:39
阅读次数:
205