1 23 package com.sun.enterprise.management.config; 24 25 import java.util.Map ; 26 27 import javax.management.ObjectName ; 28 import javax.management.Attribute ; 29 import javax.management.AttributeList ; 30 31 32 import com.sun.enterprise.management.support.oldconfig.OldWebServiceEndpointConfigMBean; 33 34 public final class RegistryLocationConfigFactory extends ConfigFactory 35 { 36 public 37 RegistryLocationConfigFactory( final ConfigFactoryCallback callbacks ) 38 { 39 super( callbacks ); 40 } 41 42 private OldWebServiceEndpointConfigMBean 43 getOld() 44 { 45 final String wsec = getFactoryContainer().getName(); 46 return getOldConfigProxies().getOldWebServiceEndpointConfigMBean( wsec ); 47 } 48 49 public ObjectName 50 create( final String jndiConnectorResourceName ) 51 { 52 final AttributeList attrs = new AttributeList (); 53 attrs.add( new Attribute ("connector-resource-jndi-name", jndiConnectorResourceName ) ); 54 55 56 57 final ObjectName oldObjectName = getOld().createRegistryLocation( attrs ); 58 59 final ObjectName amxObjectName = finish( oldObjectName, null ); 60 61 return( amxObjectName ); 62 } 63 64 protected void 65 removeByName( final String name ) 66 { 67 getOld().removeRegistryLocationByConnectorResourceJndiName( name ); 68 } 69 } 70 71 | Popular Tags |