码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
Spring 的@Scheduled注解实现定时任务执行和调度
Spring 的@Scheduled注解实现定时任务执行和调度 首先要配置我们的spring.xml   ---  即spring的主配置文件(有的项目中叫做applicationContext.xml或context.xml) xmlns 多加下面的内容、 [html] view plaincopy xmlns:task="http...
分类:编程语言   时间:2014-06-18 11:19:51    阅读次数:430
openerp学习笔记 context 的应用
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示: 示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, ...
分类:其他好文   时间:2014-06-18 10:22:52    阅读次数:333
随便写写
///一般处理程序 string action = context.Request["action"]; var adapter= new T_UserTableAdapter(); ...
分类:其他好文   时间:2014-06-18 08:54:47    阅读次数:183
spring1
源码学习第一天: org.springframework.beans  和org.springframework.context 包是ioc 容器的基础包。 BeanFactory 接口 :负责通过配置机制管理任何类型对象。 ApplicationContext 接口: 继承BeanFactory   可以和aop ,消息资源处理(国际化),事件发布集成。 webApplicat...
分类:编程语言   时间:2014-06-18 07:59:23    阅读次数:195
spring异常错误信息---
在练习spring项目的过程中,出现了如下异常信息: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.context.support.AbstractApplicationContext.(Abstrac...
分类:编程语言   时间:2014-06-18 07:15:20    阅读次数:236
idea 使用问题总结
tomcat     edit configurations配置问题:         在deployment选项卡内加入artifact到服务器,在Application context选择应用的上下文路径。     热部署:             在tomcat配置 Server选项卡内 On Update action 选择Update classes and resource ...
分类:其他好文   时间:2014-06-18 07:03:44    阅读次数:231
Android源码分析之SharedPreferences
在Android的日常开发中,相信大家都用过SharedPreferences来保存用户的某些settings值。Shared Preferences 以键值对的形式存储私有的原生类型数据,这里的私有的是指只对你自己的app可见的,也就是说别的app是无法访问到的。 客户端代码为了使用它有2种方式,一种是通过Context#getSharedPreferences(String prefNam...
分类:移动开发   时间:2014-06-17 18:56:59    阅读次数:350
IntentService源码分析
和HandlerThread一样,IntentService也是Android替我们封装的一个Helper类,用来简化开发流程的。接下来分析源码的时候 你就明白是怎么回事了。IntentService是一个按需处理用Intent表示的异步请求的基础Service类,本质上还是Android Service。 客户端通过Context#startService(Intent);这样的代码来发起一...
分类:其他好文   时间:2014-06-17 18:56:21    阅读次数:307
获取当前Activity名称
//获取当前的Activity名称package.classname privateStringgetTopActivity(Activitycontext){ ActivityManageram=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); List<RunningTaskInfo>runningTasks=am.getRunningTasks(1); RunningTaskInforti=runn..
分类:其他好文   时间:2014-06-17 17:19:50    阅读次数:245
Android中将xml布局文件转化为View树的过程分析(下)-- LayoutInflater源码分析
在Android开发中为了inflate一个布局文件,大体有2种方式,如下所示: // 1. get a instance of LayoutInflater, then do whatever you want LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOU...
分类:移动开发   时间:2014-06-17 16:42:35    阅读次数:360
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!