What is this Object relationship?
I'm new to the forums so a big hello to you all as a strarter. I'm also relativly new to JAVA, however I'm comming from a background in web development, mainly Adobe ColdFusion so have a pretty fair working knowledge of the language and the methodology behind it.
I've spent this morning studying the different logging frameworks available to us, mainly the native logging API supplied as part of the platform, and also the Log4J which comes from apache I believe, both of which seem perfectly extensive and simple enough to use.
Whilst studying their documentation and source code I've found a particular type of object relationship I've not seen before and was hoping you'd be able to shed a little light on exactly how it works.
If you wouldnt mind taking a look at the API doc for the 'Level' class which can be found here Level (Java 2 Platform SE v1.4.2) you'll notice that the class appears to contain multiple instance of itself as the properties, is that right? I've not seen this type of composition before, what is it called? and what are the benefits of using it?
I'm also trying to understand exactly what a 'field' is. is this just a publicly accessible property inside the class which is accessible without a getter? or somthing slightly different?
Thanks for any info guys, I look forward to speaking with you all over the comming weeks.