• Home
  • Courses
  • Blog
    For more information
    info@skills421.com
    RegisterLogin
    Skills421Skills421
    • Home
    • Courses
    • Blog

      Spring

      • Home
      • Spring
      Showing 1-10 of 27 results
      John Dunning

      Drools, Camel and Spring

      • Posted by John Dunning
      • Categories Camel, Java, Programming Languages, Rule Engines, Spring
      • Date February 10, 2014
      • Comments 0 comment
      February 10, 2014
      0

      Objectives In this example we will integrate Drools, Spring and Camel. We will first execute a test to show that our Rules are firing using just Drools Next we will test our Spring / Drools integration is working by loading …

      Read More
      John Dunning

      Connecting Drools 5.6 with Spring 3.x

      • Posted by John Dunning
      • Categories Java, Programming Languages, Rule Engines, Spring
      • Date February 9, 2014
      • Comments 0 comment
      February 9, 2014
      0

      This post is concerned predominantly with linking Spring3.x and Drools5.6. We will configure Spring, Drools and create a simple rule to test that we are up and running. Add the Drools Plug-in to Spring STS Start Eclipse Help -> Install …

      Read More
      John Dunning

      annotated Java Bean to read config.properties

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 8, 2014
      • Comments 0 comment
      January 8, 2014
      0

      This example is a little contrived in order to keep it simple. So far we have only covered Spring beans that are defined using the spring-config.xml. In this example we will use annotations in the bean class declaration to identify …

      Read More
      John Dunning

      Spring , @Resource, @PostConstruct and @PreDestroy

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 7, 2014
      • Comments 0 comment
      January 7, 2014
      0

      Spring supports JSR-250 which provides @Resource, @PostConstruct and @PreDestroy annotations. @Resource The @Resource annotation is used in the bean class and is attached to the setter methods of the properties.  It is used to inject a specific bean resource. – …

      Read More
      John Dunning

      Spring context:annotation-config

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      In our previous examples we have to define a bean for each BeanPostProcessor we wanted to use. Spring provides a shortcut to do this in the context namespace. We simply need to add the context namespace to our declared namespaces …

      Read More
      John Dunning

      @Autowired and @Qualifier Annotations for Spring

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      We use @Autowired to automatically wire our bean dependencies. Example In the following example, we have autowired the home address for our student from the previous example. Spring will look for a single bean with a type that matches the …

      Read More
      John Dunning

      @Required Spring Annotation

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      @Required We use the @Required annotation to tell Spring that a property on a bean is required. Student.java Here we have applied the @Required annotation to the method setStudentId. student1.xml This will do nothing if we do not add the …

      Read More
      John Dunning

      Using a Bean PostProcessor for Spring Annotations

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      I will cover the easy way to do this in a later post, but in this post we will look at how Spring processes annotations. Available JSR-250 Spring Annotations The spring-beans-3.x.jar contains the package org.springframework.beans.factory.annotation. In this package you will …

      Read More
      John Dunning

      Read Spring Bean Values from Property File

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      This example uses a BeanFactoryPostProcessor called PropertyPlaceholderConfigurer to read spring.xml config values from a property file. Example people2.properties people2.xml note that we use the PropertyPlaceholderConfigurer which is a BeanFactoryPostProcessor provided specifically for working with property configuration. TestPeople2.java

      Read More
      John Dunning

      BeanFactoryPostProcessor

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 6, 2014
      • Comments 0 comment
      January 6, 2014
      0

      The BeanFactoryPostProcessor is useful for custom config files targeted at system administrators that override bean properties configured in the application context. Use this to execute code once the BeanFactory itself has been initialised. Example MyBeanFactoryPostProcessor Create the class MyBeanFactoryPostProcessor that …

      Read More
      • 1
      • 2
      • 3
      • >

      Search

      Categories

      • APIs
      • Articles
      • Automated Testing
      • AWS
      • Blog
      • Blogging
      • Build Automation
      • Business
      • C
      • Camel
      • Cloud
      • Confluence
      • Containers
      • Content Management
      • CSS
      • Databases
      • Derby
      • Design / Branding
      • Digital Setup
      • Docker
      • Drools
      • Eclipse
      • Facebook
      • Finance
      • Fitnesse
      • Git
      • GraphDB
      • Graphileon
      • Heroku
      • Home Schooling
      • HTML
      • Humour
      • IDEs
      • IntelliJ IDEA
      • iOS
      • Java
      • JavaFX
      • JMS
      • Links
      • MacOS
      • Marketing
      • Maven
      • Mercurial
      • Modelling Languages
      • MongoDB
      • Neo4j
      • Node.js
      • NoSQL
      • Offices
      • OPA
      • OpenShift
      • Operating Systems
      • Phonics
      • Platforms
      • Programming
      • Programming Languages
      • Python
      • Relational
      • Resources
      • Route 53
      • Rule Engines
      • S3
      • Servers
      • Source Control
      • Spring
      • Subversion
      • TiddlyWiki
      • Tools
      • Training Courses
      • UML
      • Version Control
      • Web
      • Web Services
      • Wiki
      • Wikis
      • Windows
      • WordPress
      • WordPress.com

      Latest Courses

      Nodejs for Beginners

      Nodejs for Beginners

      Coming soon
      Understanding DNS

      Understanding DNS

      Coming soon
      jQuery Mobile for Beginners

      jQuery Mobile for Beginners

      Coming soon
      info@skills421.com
      Facebook-f
      Twitter
      Instagram

      Copyright © 2020 - Cloud2K t/a Skills421

      • Privacy
      • Terms

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account

      Are you a member? Login now