Dynamic Proxy Classes

本文翻译自 Java SE 6 Technotes -《Dynamic Proxy Classes》, 少部分内容取自 Java SE API 中文版. Table Of Contents Introduction Dynamic Proxy API Serialization Examples Introduction 一个动态代理类(dynamic proxy class)是实现了一组在运行期指定的接口的类, 通过已实现接口中的某个接口而对代理类某实例的方法调用将被编码并分派给另一个具有同一接口的对象上(a method invocation through one of the interfaces on an instance of the class will be encoded and dispatched to another object through a uniform interface). 因此, 一个动态代理类可用于为一组接口创建类型安全的代理对象而不需预先(例如使用编译期工具)生成这些代理类. 对一个动态代理类的某个实例进行方法调用会被分派给该实例调用处理器(invocation [...]

By javafuns on February 24, 2009 at 22:30 · Views: 515 · Permalink · RSS · Leave a comment
Categorized in: Design Patterns, Java · Tagged with: ,

Spring notes(四) – AOP

AOP in springframework…

By javafuns on March 10, 2008 at 22:08 · Views: 672 · Permalink · RSS · Leave a comment
Categorized in: Java · Tagged with: , ,

Spring notes(三) - Resource

Resource interface defines the accessor to all various resources, such as file, http resource, ftp resource, class, etc. Built-in implementations: UrlResource ClassPathResource FileSystemResource ServletContextResource InputStreamResource ByteArrayResource

By javafuns on March 9, 2008 at 20:53 · Views: 1,008 · Permalink · RSS · Leave a comment
Categorized in: Java · Tagged with: , ,

Spring notes(二) – Ioc container

IOC container, in spring framework is BeanFactory, contains the following functions: controls the lifecycle (creation, init, destroy) controls the scope (like singleton, prototype, request, session, applicationcontext, new in spring) maintains beans’ dependence BeanFactory is the base of the other modules in springframework. Collection type for bean’s property: list set map props Lazy init for bean:  [...]

By javafuns on March 9, 2008 at 20:27 · Views: 726 · Permalink · RSS · Leave a comment
Categorized in: Java, Scripts · Tagged with: , , ,

Spring notes(一) – Overview

Spring contains following modules: Core: the core(beanfactory) of springframework providing bean management Context: based on BeanFactory, but supports more functions, such as i18n, event-broadcasting, resource-loading, mail, validation, etc. DAO: series of interfaces that you can choose to implement DAOs. ORM: corresponding classes for integrating many ORM utilities to springframework. Web/Web MVC AOP: AOP function you [...]

By javafuns on March 9, 2008 at 10:22 · Views: 777 · Permalink · RSS · Leave a comment
Categorized in: Java · Tagged with: , , ,
  • Highest Rated

  • My PicasaPhotos

    955dcaee7dc2a13a2df5349e.jpg

    IMG_0578.JPG

    IMG_0521.JPG

  • RSS My del.icio.us

  • My RSS