Date: 2004-09-10T15:19:23 Editor: JacekLaskowski <[EMAIL PROTECTED]> Wiki: Apache Geronimo Wiki Page: GBeans URL: http://wiki.apache.org/geronimo/GBeans
no comment Change Log: ------------------------------------------------------------------------------ @@ -15,19 +15,17 @@ * It is implemented on top of the JMX right now but supposes to be independent of JMX. User should be able to use them without knowledge of the JMX. And it can be make independent of GBeans . * The GBean can be converted into the MBean using the GBeanMBean and use the JMX to give the services -== How to find sample GBeans == +== Sample GBeans == -**search for all the implementetors of the [wiki:/GBeanLifecycle GBeanLifecycle] is a good way to **find example** of the GBeans and I found the jetty module and the GBean``Test class quite helpful +Grab the source code and search for the implementators of the ["GBeanLifecycle"]. It is a good way to find GBeans examples. It's been found that the jetty module and the GBean``Test class are quite helpful. +TODO: Add the fully qualified class names -== Creating a GBean like follows == - a. write new GBean - a. start/stop .. the GBean +== How to write GBean == + * A GBean may implement the optional org.apache.geronimo.gbean.G``BeanLifecycle interface. When a GBean implements this interface, the implementation will get life-cycle callbacks. -== Let us Write a GBean == - * A GBean may implement the org.apache.geronimo.gbean.[wiki:/GBeanLifecycle GBeanLifecycle] interface. If it implements this interface, then it will receive life-cycle call-backs from the IoC framework. - * They can have attributes with getters and setters, There are attributes that are final and I think they are standard .. (What is the list of them) e.g. name, Kernel (they can use to get hold of the system info, have a look at the sample GBeans.) There are ordinary attributes .. have getters and setters + * They can have attributes with getters and setters. There are attributes that are final and I think they are standard .. (What is the list of them) e.g. name, Kernel (they can use to get hold of the system info, have a look at the sample GBeans.) There are ordinary attributes .. have getters and setters * GBeans can have methods ..