• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!