1 23 24 29 30 package com.sun.enterprise.management.j2ee; 31 32 import java.util.Set ; 33 import java.util.Map ; 34 import java.util.Collections ; 35 36 import com.sun.appserv.management.j2ee.EJBModule; 37 import com.sun.appserv.management.j2ee.J2EETypes; 38 import com.sun.appserv.management.base.XTypes; 39 import com.sun.appserv.management.base.Util; 40 41 import com.sun.appserv.management.util.misc.GSetUtil; 42 43 import com.sun.enterprise.management.support.Delegate; 44 45 47 public final class EJBModuleImpl extends J2EEModuleImplBase 48 { 49 public 50 EJBModuleImpl( final Delegate delegate ) 51 { 52 super( delegate ); 53 } 54 55 private static final Set <String > EJB_TYPES = 56 GSetUtil.newUnmodifiableStringSet( 57 J2EETypes.ENTITY_BEAN, 58 J2EETypes.STATELESS_SESSION_BEAN, 59 J2EETypes.STATEFUL_SESSION_BEAN, 60 J2EETypes.MESSAGE_DRIVEN_BEAN ); 61 62 public String [] 63 getejbs() 64 { 65 return( GSetUtil.toStringArray( getEJBObjectNameSet() ) ); 66 } 67 68 protected String 69 getMonitoringPeerJ2EEType() 70 { 71 return( XTypes.EJB_MODULE_MONITOR ); 72 } 73 74 75 public Set 76 getEJBObjectNameSet() 77 { 78 return( getContaineeObjectNameSet( EJB_TYPES ) ); 79 } 80 } 81 | Popular Tags |