public static OutboundResourceAdapter getOutbound(ConnectorDescriptor desc) { if (!desc.getOutBoundDefined()) { desc.setOutboundResourceAdapter(new OutboundResourceAdapter()); } return desc.getOutboundResourceAdapter(); }
/** * {@inheritDoc} */ public boolean handles(ConnectorDescriptor cd, String moduleName) { boolean canHandle = false; boolean adminObjectsDefined = false; Set adminObjects = cd.getAdminObjects(); if (adminObjects != null && adminObjects.size() > 0) { adminObjectsDefined = true; } /* this class can handle Connector 1.0 Spec. compliant RAR criteria for 1.0 RAR : * No inbound artifacts * No admin-objects * There should be only one connection-definition * RA Class should not be present (equivalent to "") */ if(!cd.getInBoundDefined() && !adminObjectsDefined && (cd.getOutBoundDefined() && cd.getOutboundResourceAdapter().getConnectionDefs().size() < 2 && "".equals(cd.getResourceAdapterClass())) ){ canHandle = true; } return canHandle; }
/** * {@inheritDoc} */ public boolean handles(ConnectorDescriptor cd, String moduleName) { boolean adminObjectsDefined = false; Set adminObjects = cd.getAdminObjects(); if (adminObjects != null && adminObjects.size() > 0) { adminObjectsDefined = true; } /* this class can handle Connector 1.5 Spec. compliant RAR that has no inbound artifacts criteria for 1.5 RAR : * No inbound artifacts * Any one of the following conditions hold true : * -> admin object is defined or * -> resource-adapter-class is defined or * -> more than one connection-definition is defined. */ boolean canHandle = false; if(!cd.getInBoundDefined()){ if(cd.getOutBoundDefined() && cd.getOutboundResourceAdapter().getConnectionDefs().size() > 1){ canHandle = true; }else if (adminObjectsDefined){ canHandle = true; }else if(!cd.getResourceAdapterClass().equals("")){ canHandle = true; } } return canHandle; }
if(descriptor.getOutBoundDefined()){ Set connectionDefinitions = descriptor.getOutboundResourceAdapter().getConnectionDefs(); if(connectionDefinitions.size() == 0){
if (desc.getOutBoundDefined()) { OutboundResourceAdapter ora = desc.getOutboundResourceAdapter(); Set connectionDefs = ora.getConnectionDefs();
if (ManagedConnectionFactory.class.isAssignableFrom(c)) { if (!desc.getOutBoundDefined()) { OutboundResourceAdapter ora = new OutboundResourceAdapter(); desc.setOutboundResourceAdapter(ora);
private void processConnectionDefinition(AnnotationInfo element, ConnectorDescriptor desc, ConnectorConfigProperty ep, Class declaringClass) { if (desc.getOutBoundDefined()) {
raNode = config.writeDescriptor(raNode, conDesc); if (conDesc.getOutBoundDefined() == true) {
raNode = config.writeDescriptor(raNode, conDesc); if (conDesc.getOutBoundDefined() == true) {
RarBundleContext rarContext = (RarBundleContext) aeHandler; ConnectorDescriptor desc = rarContext.getDescriptor(); if (!desc.getOutBoundDefined()) { OutboundResourceAdapter ora = new OutboundResourceAdapter(); desc.setOutboundResourceAdapter(ora);