2002年香港公营机构打工皇帝年薪

2002年香港公营机构打工皇帝年薪

姓名

职位

年薪

任志刚 金融管理局总裁 649万元底薪+173万元花红
沈联涛 证监会主席 675万元
彭定中 机场管理局行政总监 657万元(底薪连福利)
杨启彦 九铁行政总裁 550万元
施祖祥 贸发局总裁 500万至600万元(视乎表现)
许仕仁 强积金管理局行政总监(已卸任) 469万元(底薪+花红)
林中麟 市区重建局行政总监 350万元底薪+99.8万元花红
谭宗定 香港科技园行政总裁 400万元底薪
臧明华 旅游发展局总干事 300万元底薪+10%花红
苏泽光 地铁主席兼行政总裁(已卸任) 明年公布业绩才披露(去年年报资料介于750万元至800万元之间)

http://finance.sina.com.cn/crz/20031113/1459517705.shtml

 

 

Spring Annotation

Introduction

The most common annotation in Spring would include @Component, @Repository, @Service and @Controller.

@Component is the generic term for Spring Bean. @Repository, @Service and @Controller are subclass of @Component. They have specific usage in Spring Framework. @Repository represent a Spring Bean in Persistent Layer. @Service represent a Spring Bean in Service Layer.@Controller represents a Spring Bean in Presentation Layer.

@Controller

@Controller specify a Class as a Spring Bean in Presentation Layer of Spring Web MVC Framework. It would work with other annotations such as @RequestMapping, @PathVariable, @RequestParam, @MatrixVariable, @RequestHeader, @RequestPart, @SessionAttribute, @RequestAttribute, @ModelAttribute, @ResponseBody.

By default, the scope of Spring Bean annotated with @Controller is Singleton

@RequestMapping and @ResponseBody

@RequestMapping could be place above a class or a method. It would specify a request method or URL that would be handled. @ResponseBody specify the return type would be written to HTTP response body.

@Controller
public class ExampleController {

  @RequestMapping("/")
  @ResponseBody
  public String handle(){
    return "Hello World";
  }
}

@Repository

@Repository specify a class as a Spring Bean of Data Access Object (DAO) in Spring Frameowork. It provide support for DataAccessException which is a generic exception for technology-specific exception such as SQLException, HibernateException and JDOExcpetion. It provide access to DataSource through @Autowired, @Inject, @Resource, @PersistenceContext. Also,  Spring Framework would handle the transaction management in its Data Access Object annotated with @Repository.

@Service

@Service is more specific than @Component. It indicate the class as a Business Service Facade. Currently, no specific support is added @Service to make it very different from @Component.

Server Sent Event

Introduction

Web API provide an interface to receive server-sent events. It would connect to a server over HTTP and receives events in text/event format without closing the connection.

var eventSource = new EventSource("");

Once message is received from the server, the follow-up action would be triggered.

eventSource.onmessage = function(event){
  // the data of the event can be found on event.data
};

Not all browser support Server Sent Event API

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
 Basic support 9 6.0 ? 11 5