public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { return component.resolveEndpointReference(epr); }
DynamicEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment reference) { Set channels; DynamicEndpoint dep = null; channels = ((Hashtable)mChannels.clone()).keySet(); for (String id : ((Hashtable<String,DeliveryChannelImpl>)mChannels.clone()).keySet()) { Component comp = mComponentManager.getComponentInstance(id); ServiceEndpoint ep = comp.resolveEndpointReference(reference); if (ep != null) { dep = new DynamicEndpoint(ep, id, reference); break; } } return dep; }
public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { this.logger.start(); ParameterCheckHelper.isNullParameter(epr, "epr"); javax.jbi.servicedesc.ServiceEndpoint result = null; // switch the classloader to the container one ClassLoader componentClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); try { for (Installer installer : this.componentContextCommunication.getAdminService() .getInstallers()) { result = installer.getComponent().resolveEndpointReference(epr); if (result != null) { break; } } } finally { Thread.currentThread().setContextClassLoader(componentClassLoader); } this.logger.end(); return result; }
ComponentLifeCycle lifeCycle = (ComponentLifeCycle) iter.next(); result = lifeCycle.getComponent().resolveEndpointReference(epr); .next(); result = lifeCycle.getComponent().resolveEndpointReference( epr);
public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { for (ComponentWrapper component : componentRegistry.getServices()) { ServiceEndpoint se = component.getComponent().resolveEndpointReference(epr); if (se != null) { Map<String, ?> target = componentRegistry.getProperties(component); componentRegistry.getNmr().getWireRegistry().register( ServiceHelper.createWire( ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, se.getEndpointName(), Endpoint.SERVICE_NAME, se.getServiceName().toString()), ServiceHelper.createMap(ComponentRegistry.NAME, target.get(ComponentRegistry.NAME).toString(), ComponentRegistry.TYPE, target.get(ComponentRegistry.TYPE).toString()) ) ); return se; } } ServiceEndpoint se = resolveInternalEPR(epr); if (se != null) { return se; } return resolveStandardEPR(epr); }
/** * Resolve the given endpoint reference into a service endpoint. This is called by the component when it has an EPR * that it wants to resolve into a service endpoint. * <p> * Note that the service endpoint returned refers to a dynamic endpoint; the endpoint will exist only as long as * this component retains a strong reference to the object returned by this method. The endpoint may not be included * in the list of "activated" endpoints. * * @param epr endpoint reference as an XML fragment; must be non-null. * @return the service endpoint corresponding to the given endpoint reference; <code>null</code> if the reference * cannot be resolved. */ public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { for (ComponentMBeanImpl connector : getComponents()) { ServiceEndpoint se = connector.getComponent().resolveEndpointReference(epr); if (se != null) { return new DynamicEndpoint(connector.getComponentNameSpace(), se, epr); } } ServiceEndpoint se = resolveInternalEPR(epr); if (se != null) { return se; } return resolveStandardEPR(epr); }