-
1. Re: Is the word Component and Class used interchangeably?
lvdberg May 19, 2010 8:13 PM (in response to samuraicoder)Hi,
Your question can lead to the longest forum discussion , but ok.
A component is
sort of an object
, both are instances of a Class. In the context of Seam a Component can be defined as aSeam
intercepted or created object. You create a component yourself by writing a Class with all the Seam annotations and let Seam create an instance of it. However you can also usenot-seaminzed
classes and make them a Seam component by defining them in components.xml.Never, never use the new operator in a Seam-environment, let Seam do the work for you !
Pretty impressive stuff and can overwhelm you sometimes.
Welcome to the wonderful world of Seam !
Leo
-
2. Re: Is the word Component and Class used interchangeably?
boomerbrian.brian.abston.featurenotbug.com May 19, 2010 8:40 PM (in response to samuraicoder)The @Name annotation is what makes the Java class a Seam component. So the answer to your question is yes and no.