/** * Locates and incrementally instantiates the available providers of a * given service using the given class loader. * <p/> * <p> This method transforms the name of the given service class into a * provider-configuration filename as described above and then uses the * {@code getResources} method of the given class loader to find all * available files with that name. These files are then read and parsed to * produce a list of provider-class names. The iterator that is returned * uses the given class loader to lookup and then instantiate each element * of the list. * <p/> * <p> Because it is possible for extensions to be installed into a running * Java virtual machine, this method may return different results each time * it is invoked. <p> * * @param service The service's abstract service class * @param loader The class loader to be used to load provider-configuration files * and instantiate provider classes, or {@code null} if the system * class loader (or, failing that the bootstrap class loader) is to * be used * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class) */ public static <T> ServiceFinder<T> find(@NotNull Class<T> service, @Nullable ClassLoader loader) { return find(service, loader, ContainerResolver.getInstance().getContainer()); }
public Engine(String id, Executor threadPool) { this(id, ContainerResolver.getDefault().getContainer(), threadPool); }
/** * Locates and incrementally instantiates the available providers of a * given service using the given class loader. * <p/> * <p> This method transforms the name of the given service class into a * provider-configuration filename as described above and then uses the * {@code getResources} method of the given class loader to find all * available files with that name. These files are then read and parsed to * produce a list of provider-class names. The iterator that is returned * uses the given class loader to lookup and then instantiate each element * of the list. * <p/> * <p> Because it is possible for extensions to be installed into a running * Java virtual machine, this method may return different results each time * it is invoked. <p> * * @param service The service's abstract service class * @param loader The class loader to be used to load provider-configuration files * and instantiate provider classes, or {@code null} if the system * class loader (or, failing that the bootstrap class loader) is to * be used * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class) */ public static <T> ServiceFinder<T> find(@NotNull Class<T> service, @Nullable ClassLoader loader) { return find(service, loader, ContainerResolver.getInstance().getContainer()); }
private Executor wrap(Executor ex) { return ContainerResolver.getDefault().wrapExecutor(container, ex); }
do { if (serviceClass != null) { WSDLLocator locator = ContainerResolver.getInstance().getContainer().getSPI(WSDLLocator.class); if (locator != null) { String exForm = wsdlLoc.toExternalForm();
public Engine(String id, Executor threadPool) { this(id, ContainerResolver.getDefault().getContainer(), threadPool); }
/** * Locates and incrementally instantiates the available providers of a * given service using the given class loader. * <p/> * <p> This method transforms the name of the given service class into a * provider-configuration filename as described above and then uses the * {@code getResources} method of the given class loader to find all * available files with that name. These files are then read and parsed to * produce a list of provider-class names. The iterator that is returned * uses the given class loader to lookup and then instantiate each element * of the list. * <p/> * <p> Because it is possible for extensions to be installed into a running * Java virtual machine, this method may return different results each time * it is invoked. <p> * * @param service The service's abstract service class * @param loader The class loader to be used to load provider-configuration files * and instantiate provider classes, or {@code null} if the system * class loader (or, failing that the bootstrap class loader) is to * be used * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class) */ public static <T> ServiceFinder<T> find(@NotNull Class<T> service, @Nullable ClassLoader loader) { return find(service, loader, ContainerResolver.getInstance().getContainer()); }
public Engine(String id, Executor threadPool) { this(id, ContainerResolver.getDefault().getContainer(), threadPool); }
do { if (serviceClass != null) { WSDLLocator locator = ContainerResolver.getInstance().getContainer().getSPI(WSDLLocator.class); if (locator != null) { String exForm = wsdlLoc.toExternalForm();
public Engine(String id) { this(id, ContainerResolver.getDefault().getContainer()); }
do { if (serviceClass != null) { WSDLLocator locator = ContainerResolver.getInstance().getContainer().getSPI(WSDLLocator.class); if (locator != null) { String exForm = wsdlLoc.toExternalForm();
private Executor wrap(Executor ex) { return ContainerResolver.getDefault().wrapExecutor(container, ex); }
public W3CEndpointReference createW3CEndpointReference(String address, QName interfaceName, QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation, List<Element> referenceParameters, List<Element> elements, Map<QName, String> attributes) { Container container = ContainerResolver.getInstance().getContainer(); if (address == null) { if (serviceName == null || portName == null) {
public Engine(String id) { this(id, ContainerResolver.getDefault().getContainer()); }
public W3CEndpointReference createW3CEndpointReference(String address, QName interfaceName, QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation, List<Element> referenceParameters, List<Element> elements, Map<QName, String> attributes) { Container container = ContainerResolver.getInstance().getContainer(); if (address == null) { if (serviceName == null || portName == null) {
public Engine(String id) { this(id, ContainerResolver.getDefault().getContainer()); }
public W3CEndpointReference createW3CEndpointReference(String address, QName interfaceName, QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation, List<Element> referenceParameters, List<Element> elements, Map<QName, String> attributes) { Container container = ContainerResolver.getInstance().getContainer(); if (address == null) { if (serviceName == null || portName == null) {
private Executor wrap(Executor ex) { return ContainerResolver.getDefault().wrapExecutor(container, ex); }
Container tContainer = initParams.getContainer()!=null ? initParams.getContainer() : ContainerResolver.getInstance().getContainer(); if (tContainer == Container.NONE) { tContainer = new ClientContainer();
public final T invoke(T in) { Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); try { if (LOGGER.isLoggable(Level.FINE)) { dumpParam(in, "invoke(T)"); } return doInvoke(in,requestContext,this); } finally { ContainerResolver.getDefault().exitContainer(old); } }