View RSS Feed

Bean Factory

Spring Bean Factory

  1. Beans life in Spring Framework

    by , 07-07-2012 at 05:37 PM
    The bean has a very simple lifecycle in a normal traditional java application. The bean is instantiated with the new keywork in Java and it is ready to use. When a created bean is not referred by any other object or is not in use, it is collected by the garbage collector.

    Bean life cycle in the Spring framework perform extra functionalities. So it is an important part of the Spring framework to understand its bean life cycle so that all the benefits offered by the spring for bean ...
  2. Introduction to Spring BeanFactory

    by , 07-07-2012 at 05:35 PM
    Factory design implementation is the beanís factory. This class has a responsibility is creation or dispension of the beans. Bean factory is basically the general purpose sort of factory. Application objects are instantiated and delivered by the bean factory. Bean factory is aware of various objects present in application. Associations are created b/w the collaborated objects when they are instantiated or configuration burden is being removed from the bean. This also has a vital role in bean life ...
    Categories
    Bean Factory
  3. Bean Life Cycle

    by , 07-07-2012 at 05:34 PM
    POJO components are presented by a spring bean which perform certain operations that are considerably useful. All of the SpringBeans which are present in Spring Container are called IOC Container. Spring framework is considered to be very transparent and it hides various infrastructure complexities and communication which occurs b/w spring beans and spring container. Sequence of activities is listed by this section which will be occurring b/w Bean instantiation Bean time and will be handing over ...
    Categories
    Bean Factory
  4. How to Automatically Discover Spring Beans on the Classpath

    by , 11-27-2011 at 09:38 PM
    Since itís appearance in Java 5, annotations has helped to simplify the configuration of application through component scanning. This removes the need for XML bean tags in many cases. Classes annotated as component stereotypes including the following: @Service, @Controller, @Configuration, @Component, @Repository as well as the JSR-330 annotations, such as @Named are included in the auto-scan default filter. Once auto-detected, these components become Spring beans and are automatically placed ...
  5. Working with Spring's Bean Factories

    by , 11-16-2011 at 12:18 PM
    BeanFactory serves as the core to Spring's Dependency Injection implementation. A BeanFactory is responsible for managing components and their dependencies. Bean is the term used in Spring to refer to any component managed by the container. Typically all Spring beans adhere, at some level, to the JavaBeans specification, although it is not required. The most obvious case of Spring deviating from the JavaBean specification is with the use of Constructor Injection to wire your beans together. ...
  6. The Core Features of the Spring Framework

    by , 11-15-2011 at 01:42 PM
    Dependency Injection
    In early tips, we discussed the issues around creating and initializing objects and itís variables. Fortunately there is a way of addressing this situation in Spring that is a wonderful design pattern that they have applied to address this aspect. It is a combination of Inversion of Control and Dependency Injection. Many developers mistakenly believe that IOC and DI are the same thing. It is incorrect. IOC deals with inverting the control flow in an application, DI describes ...