/** * Adds a new DOL descriptor instance to the descriptor instance associated with * this XMLNode * * @param descriptor the new descriptor */ public void addDescriptor(Object obj) { if (obj instanceof ConnectorConfigProperty) { descriptor.addConfigProperty((ConnectorConfigProperty)obj); } }
/** * Set of EnvironmentProperty */ public Set getConfigProperties() { return getConnectionDef().getConfigProperties(); }
/** * Get connection factory impl */ public String getConnectionFactoryImpl() { return getConnectionDef().getConnectionFactoryImpl(); }
/** * Constructs ConnectorDescriptorInfo object from the * ConnectionDefDescriptor object (deployment descriptor of connector * module) * * @param connectionDefDescriptor ConnectionDefDescriptor object which * represents the ra.xml and sun-ra.xml * @return Transformed ConnectorDescriptorInfo object */ public static ConnectorDescriptorInfo getConnectorDescriptorInfo( ConnectionDefDescriptor connectionDefDescriptor) { ConnectorDescriptorInfo connectorDescInfo = new ConnectorDescriptorInfo(); connectorDescInfo.setConnectionDefinitionName( connectionDefDescriptor.getConnectionFactoryIntf()); connectorDescInfo.setManagedConnectionFactoryClass( connectionDefDescriptor.getManagedConnectionFactoryImpl()); connectorDescInfo.setConnectionFactoryClass( connectionDefDescriptor.getConnectionFactoryImpl()); connectorDescInfo.setConnectionFactoryInterface( connectionDefDescriptor.getConnectionFactoryIntf()); connectorDescInfo.setConnectionInterface( connectionDefDescriptor.getConnectionIntf()); connectorDescInfo.setConnectionClass( connectionDefDescriptor.getConnectionImpl()); connectorDescInfo.setMCFConfigProperties( connectionDefDescriptor.getConfigProperties()); return connectorDescInfo; }
ConnectionDefDescriptor cdd = new ConnectionDefDescriptor(); cdd.setConnectionFactoryImpl(connDefn.connectionFactoryImpl().getName()); cdd.setConnectionFactoryIntf(connDefn.connectionFactory().getName()); cdd.setConnectionIntf(connDefn.connection().getName()); cdd.setConnectionImpl(connDefn.connectionImpl().getName()); cdd.setManagedConnectionFactoryImpl(targetClassName);
ConnectionDefDescriptor cd = (ConnectionDefDescriptor) o; if (cd.getManagedConnectionFactoryImpl().equals(declaringClass.getName())) { if (!(isConfigDefined(cd.getConfigProperties(), ep))) { cd.addConfigProperty(ep); if(!desc.getConfigPropertyProcessedClasses().contains(cd.getConnectionFactoryIntf())){ processParent(declaringClass.getSuperclass(), cd.getConfigProperties()); desc.addConfigPropertyProcessedClass(cd.getConnectionFactoryIntf());
while(iter.hasNext()) { cdd = (ConnectionDefDescriptor)iter.next(); if(connectionDefName.equals(cdd.getConnectionFactoryIntf())) { connectionDefFound=true; break; Set ddVals = cdd.getConfigProperties(); String className = cdd.getManagedConnectionFactoryImpl(); if(className != null && className.length() != 0) { Properties introspectedVals = configParserUtil.introspectJavaBean(
public boolean hasConnectionDefDescriptor(String connectionFactoryIntf){ for(Object o : connectionDefs){ ConnectionDefDescriptor cdd = (ConnectionDefDescriptor)o; if(cdd.getConnectionFactoryIntf().equals(connectionFactoryIntf)){ return true; } } return false; }
/** * set connection factory impl */ public void setConnectionFactoryImpl(String cf) { getConnectionDef().setConnectionFactoryImpl(cf); }
/** * Get connection intf */ public String getConnectionIntf() { return getConnectionDef().getConnectionIntf(); }
/** * This method is required for 1.0 DTD so that there will be 1 instance of * ConnectionDefDescriptor available * I know that this constructor will be called only when it is a 1.0 DD * dont want to rely on whether 1.0 or 1.5 spec version * So this method is called when the ConnectorNode knows that it is for 1.0 DTD */ public void createConDefDescriptorFor10() { ConnectionDefDescriptor conDef = new ConnectionDefDescriptor(); ((OutboundResourceAdapter)getDescriptor()).addConnectionDefDescriptor(conDef); }
/** * set connection factory intf */ public void setConnectionFactoryIntf(String cf) { getConnectionDef().setConnectionFactoryIntf(cf); }
/** * Gets the value of ManagedconnectionFactoryImpl */ public String getManagedConnectionFactoryImpl() { return getConnectionDef().getManagedConnectionFactoryImpl(); }
/** * Get connection impl */ public String getConnectionImpl() { return getConnectionDef().getConnectionImpl(); }
ConnectionDefDescriptor con = (ConnectionDefDescriptor) connectionDefs.next(); Node conNode = appendChild(parent, ConnectorTagNames.CONNECTION_DEFINITION); appendTextChild(conNode, ConnectorTagNames.MANAGED_CONNECTION_FACTORY, con.getManagedConnectionFactoryImpl()); appendTextChild(conNode, ConnectorTagNames.CONNECTION_FACTORY_INTF, con.getConnectionFactoryIntf()); appendTextChild(conNode, ConnectorTagNames.CONNECTION_FACTORY_IMPL, con.getConnectionFactoryImpl()); appendTextChild(conNode, ConnectorTagNames.CONNECTION_INTF, con.getConnectionIntf()); appendTextChild(conNode, ConnectorTagNames.CONNECTION_IMPL, con.getConnectionImpl());
ConnectionDefDescriptor connectionDef = (ConnectionDefDescriptor) it.next(); String connectionFactoryClass = connectionDef.getConnectionFactoryIntf(); if (connectionFactoryClass != null && !connectionFactoryClass.equals("")) { if (!desc.getConfigPropertyProcessedClasses().contains(connectionFactoryClass)) { Class claz = getClass(connectionDef.getManagedConnectionFactoryImpl()); ConfigPropertyHandler.processParent(claz, connectionDef.getConfigProperties());
public boolean hasConnectionDefDescriptor(String connectionFactoryIntf){ for(Object o : connectionDefs){ ConnectionDefDescriptor cdd = (ConnectionDefDescriptor)o; if(cdd.getConnectionFactoryIntf().equals(connectionFactoryIntf)){ return true; } } return false; }
/** * set connection factory impl */ public void setConnectionFactoryImpl(String cf) { getConnectionDef().setConnectionFactoryImpl(cf); }
/** * Get connection intf */ public String getConnectionIntf() { return getConnectionDef().getConnectionIntf(); }
/** * This method is required for 1.0 DTD so that there will be 1 instance of * ConnectionDefDescriptor available * I know that this constructor will be called only when it is a 1.0 DD * dont want to rely on whether 1.0 or 1.5 spec version * So this method is called when the ConnectorNode knows that it is for 1.0 DTD */ public void createConDefDescriptorFor10() { ConnectionDefDescriptor conDef = new ConnectionDefDescriptor(); ((OutboundResourceAdapter)getDescriptor()).addConnectionDefDescriptor(conDef); }