What are the pros and cons of using Spring in the Swing interface

We have an external application that uses Swing. We use the Spring framework, but currently it is only used to autodetect multiple beans ...

What are reasonable further steps to use Spring more often? Is it worth it for a non-web application?

What will be the advantages and disadvantages?

+3
source share
4 answers

The advantage of using Spring (or any other dependency) is that you get (hopefully) a loosely coupled system, that is, you do not instantiate your co-authors, so you can easily change the implementation.

(IoC, SOLID), . , Spring -, , IoC ( spring -core).

: , . ( ), ( - , mocks stubs ).

, , . , , .

: xml ( spring), . Spring (@Autowired) , java-, , Spring IoC- .

, Spring , , .

Swing Spring. , , Spring . ( ( ) gui). JPA/hibernate , Spring spring DAO .

+4

swing UI, spring.

  • , . - .
  • "overbean" bean, .

spring .

,

  • , , , - .
  • rpc 3 .

, spring, .

, java spring, 3.0. , spring .

+3

Spring Swing , Spring DI .

+1

It would be nice if you ever decide to switch to a web application, all you need (well, almost) to change would be a view. This is the beauty of MVC applications.

0
source

All Articles