组合(Composite)模式:将对象组合树形结构以表示‘部分-整体’的层次结构。组合模式使得用户对单个对象和组合对象具有一致性 /* * 抽象构件(Component)角色:这是一个抽象角色,它给参与组合的对象规定一个接口。这个角色给出共有接口及其默认行为。 * 树叶构件(Lea...
分类:
其他好文 时间:
2014-06-18 18:02:36
阅读次数:
194
A monolithic kernel is a kernel where all services (file system, VFS, device drivers, etc) as well as core functionality (scheduling, memory allocatio...
分类:
其他好文 时间:
2014-06-18 12:45:23
阅读次数:
361
android应用程序的三大组件——Activities、Services、Broadcast Receiver,通过消息触发,这个消息就是Intent,中文又翻译为"意图"(我感觉读着不顺畅,还是读英文)。我们可以通过Intent去启动三大组件,并且通过Intent携带数据到其他组件中。本文来看一下怎么使用Intent启动组件,以及Intent的过滤规则。
Intent对象
首先来看...
分类:
其他好文 时间:
2014-06-18 12:29:10
阅读次数:
271
使用注解进行简化aop的配置
切点是run方法
Car.java
package com.lubby.bean;
import org.springframework.stereotype.Component;
@Component("car")
public class Car {
public void run(){
System.out.println("Car i...
分类:
编程语言 时间:
2014-06-18 12:17:12
阅读次数:
269
1.添加JAR包,出了Spring自身的Jar包还要一些依赖的JAR包,不然会报ClassNotFound。
Student.java
package com.lubby.bean;
import org.springframework.stereotype.Component;
@Component("student")
public class Student {
private ...
分类:
编程语言 时间:
2014-06-18 11:57:51
阅读次数:
176
Neutroncontrollernode:vi/etc/neutron/neutron.confservice_plugins=router,lbaas[service_providers]service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:defaultserviceneutron-serverrestartNe..
分类:
其他好文 时间:
2014-06-17 17:43:51
阅读次数:
266
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\OracleOraDb11g_home1TNSListener]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\OracleMTSRecoverySe...
分类:
数据库 时间:
2014-06-17 16:45:46
阅读次数:
567
概述JBoss 7/WildFly Standalone 模式启动过程大致如下:启动脚本 standalone.sh 启动 JBoss Modules,JBoss Modules 启动 JBoss MSC,JBoss MSC 运行加载相关的 Services,本文简单以调试代码的方式,简单说明这几个步骤。调试 jboss modules当我们完成 JBoss 安装,我们会发现在 JBOSS_HOM...
分类:
其他好文 时间:
2014-06-16 14:25:45
阅读次数:
268
原地址:http://www.haogongju.net/art/25919361.The AnimationClip 'cube1_anim' used by the Animation component 'Cube1' must be marked as Legacy.解决方法:1. 点击“A...
分类:
其他好文 时间:
2014-06-15 09:43:53
阅读次数:
340
安装win7主题控制面板 - 程序 - 打开或关闭windows功能 -功能 - 添加功能:在选择功能里勾选 桌面体验(会添加必要功能),安装就行了。1、安装好后,个性化时,发现win7主题为灰色不可选,检查是否启动Themes服务,在开始 - 运行 services.msc,开启 Themes 服...