aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes diff object vs component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "diff object vs component" Watch "diff object vs component" New topic
Author

diff object vs component

vaidhehi paruchuri
Greenhorn

Joined: Jan 05, 2004
Posts: 4
What is the difference between object and a component?
Thanks
Vaidehi
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Components are generally larger grained things, built up of a bunch of classes. Technical definitions usually include some points about binary (compiled, ready to run), replaceable (given an interface, there could be several implementations), deployment units, and so on. Usually we talk about components providing "services" which are also larger grained than regular methods, maybe made up of quite complex goings on. For example, I might have a logging component with a single class for a simple public interface, but many classes and complex logic hidden inside. I hedge with words like "generally" and "usually" because there are always exceptions. A one-class component is not really forbidden, just not very common.
BTW: Let's hope we don't get spanked for talking about this in an EJB forum! If you want to talk more theory like that, scroll on down to the general forums or maybe even the UML, OO, etc forum.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
vaidhehi paruchuri
Greenhorn

Joined: Jan 05, 2004
Posts: 4
Thanks
vaidhehi paruchuri
Greenhorn

Joined: Jan 05, 2004
Posts: 4
Thanks
 
wood burning stoves
 
subject: diff object vs component