Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Proper JavaBeans use - where to put server methods  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm new here and I'm trying to learn.

I'm working on a big project, which uses beans in a way I can't understand and I don't know how it would be solved.

In this project bean classes have an empty constructor and a big amount of methods, no state.
These methods have a single line which is an invocation of methods contained in other classes (Managers).

I've been told it was done to avoid the loading of all the methods (in bean classes) when JBoss started, so it's lighter.

What other way would be good? How to make code more structured and clear, without losing performance?
All these methods (now in managers) are big, would the solution be shredding the big ones into smaller ones (same for classes)?

Consider that some methods contain like 1000 lines of code. It's a legacy project
 
Fabio Urbini
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea? Or is any way I can make this clearer?
 
Let me tell you a story about a man named Jed. He made this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!