Skip to main content

Kenyth Zeng's Library tagged reference   View Popular

Vim Regular Expressions 101

  • s:\([.!?]\)\s\+\([a-z]\):\1  \u\2:g


    We have corrected our grammar and as an extra job we replaced variable
    number of spaces between punctuation and the first letter of the next
    sentence with exactly two spaces.

22 Sep 09

Bash Reference Manual

  • The preamble is prefixed to each string contained within the braces, and
    the postscript is then appended to each resulting string, expanding left
    to right.
31 Aug 09

7.8 Using AspectJ with Spring applications -- Spring Framework 3.0 Reference

  • ask a bean factory to
    configure a pre-existing object given the name of a
    bean definition containing the configuration to be applied. The
    spring-aspects.jar contains an
    annotation-driven aspect that exploits this capability to allow
    dependency injection of any object.
  • Spring will configure
    new instances of the annotated type (Account in
    this case) using a prototype-scoped bean definition with the same name
    as the fully-qualified type name
    (com.xyz.myapp.domain.Account).
  • 16 more annotations...

8.3 Advice API in Spring -- Spring Framework 3.0 Reference

  • This
    corresponds to per-class or
    per-instance advice.
  • Per-instance advice is appropriate for introductions, to support
    mixins. In this case, the advice adds state to the proxied
    object.
  • 2 more annotations...
30 Aug 09

7.3 Schema-based AOP support -- Spring Framework 3.0 Reference

  • An
    <aop:config> element can contain pointcut,
    advisor, and aspect elements (note these must be declared in that
    order).
  • The state
    and behavior is captured in the fields and methods of the object, and
    the pointcut and advice information is captured in the XML.
  • 4 more annotations...

7.2 @AspectJ support -- Spring Framework 3.0 Reference

  • Spring 2.0 interprets
    the same annotations as AspectJ 5, using a library supplied by AspectJ for
    pointcut parsing and matching. The AOP runtime is still pure Spring AOP
    though, and there is no dependency on the AspectJ compiler or
    weaver.
  • You will also need two AspectJ libraries on the classpath of your
    application: aspectjweaver.jar
    and aspectjrt.jar.
  • 2 more annotations...

7. Aspect Oriented Programming with Spring -- Spring Framework 3.0 Reference

  • n the Spring Framework, an AOP proxy will be
    a JDK dynamic proxy or a CGLIB proxy.
  • This can
    be done at compile time (using the AspectJ compiler, for example),
    load time, or at runtime. Spring AOP, like other pure Java AOP
    frameworks, performs weaving at runtime.
  • 2 more annotations...

7.6 Proxying mechanisms -- Spring Framework 3.0 Reference

  • final methods cannot be advised, as they
    cannot be overriden.
  • The constructor of your proxied object will be called twice.
  • 2 more annotations...
28 Aug 09

3.11 Java-based container configuration -- Spring Framework 3.0 Reference

  • can also take advantage of
    @Autowired annotations at the field and
    method levels, but not at the constructor level.
  • must
    also have a default constructor
  • 1 more annotations...

3.10 Classpath scanning and managed components -- Spring Framework 3.0 Reference

  • these stereotype annotations make ideal targets
    for pointcuts. It is also possible that
    @Repository,
    @Service, and
    @Controller may carry additional
    semantics in future releases of the Spring Framework.
  • @Repository
    is already supported as a marker for automatic exception translation in
    your persistence layer.
  • 7 more annotations...

3.4 Dependencies -- Spring Framework 3.0 Reference

  • only through constructor arguments, arguments to a
    factory method, or properties that are set on the object instance after
    it is constructed or returned from a factory method.
  • your classes become easier to test,
    in particular when the dependencies are on interfaces or abstract base
    classes, which allow for stub or mock implementations to be used in unit
    tests.

  • 23 more annotations...

3.3 Bean overview -- Spring Framework 3.0 Reference

  • In addition to bean definitions that contain information on how to
    create a specific bean, the
    ApplicationContext implementations also
    permit the registration of existing objects that are created outside the
    container, by users. This is done by accessing the ApplicationContext's
    BeanFactory via the method getBeanFactory which
    returns the BeanFactory implementation
    DefaultListableBeanFactory.
    DefaultListableBeanFactory supports this
    registration through the methods
    registerSingleton(..) and
    registerBeanDefinition(..).
  • specify them in the
    name attribute, separated by a comma
    (,), semicolon (;), or white
    space.
  • 3 more annotations...

2.5 Overview of new features -- Spring Framework 3.0 Reference

  • Object to XML mapping functionality (OXM) moved from Spring Web
    Services project
  • Declarative model validation
  • 4 more annotations...

2.4 New module organization and build system -- Spring 3.0 Reference

    • We are now using a new Spring build system as known from Spring Web
      Flow 2.0. This gives us:

      • Ivy-based "Spring Build" system

      • consistent deployment procedure

      • consistent dependency management

      • consistent generation of OSGi manifests

  • We are now using a new Spring build system as known from Spring Web
    Flow 2.0.
27 Aug 09

2. New Features and Enhancements in Spring 3.0

  • We provide
    first-class support for Callables and Futures now, as well as
    ExecutorService adapters, ThreadFactory integration, etc. This has been
    aligned with JSR-236 (Concurrency Utilities for Java EE 6) as far as
    possible. Furthermore, we provide support for asynchronous method
    invocations through the use of the new @Async annotation (or EJB 3.1's
    @Asynchronous annotation).
1 - 20 of 258 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo