• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

diff object vs component

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between object and a component?
Thanks
Vaidehi
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
vaidhehi paruchuri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
vaidhehi paruchuri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic