KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > admin > spec > business > MBeanTriggerFactory


1 /*
2  * SimpleCacheAdmin
3  *
4  * Business Factory Object
5  *
6  */

7
8 package org.enhydra.admin.spec.business;
9
10 public class MBeanTriggerFactory {
11         
12         public static MBeanTrigger createMBeanTrigger(){
13             MBeanTrigger result = null;
14       Class JavaDoc objectClass = null;
15
16       try {
17         // Create the value object
18
objectClass = Class.forName("org.enhydra.admin.business.MBeanTriggerImpl");
19         result = (MBeanTrigger) objectClass.newInstance();
20       } catch (Exception JavaDoc ex) {
21         System.out.println("Error during object creation: " + ex);
22       }
23       return result;
24         }
25 }
26
Popular Tags