/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }
/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found */ public static MarshallerFactory getProvidedMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, Marshalling.class.getClassLoader()); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the given classloader to locate * the factory. * * @param name the name of the protocol to acquire * @param classLoader the class loader to use * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader */ public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class, classLoader); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }
/** * Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate * the factory. * * @param name the name of the protocol to acquire * @return the marshaller factory, or {@code null} if no matching factory was found * * @see ServiceLoader * * @deprecated It is recommended that you use {@link #getProvidedMarshallerFactory(String)} instead; using the context * class loader to find a marshalling implementation is risky at best as the user may have just about anything on their * class path. */ @Deprecated public static MarshallerFactory getMarshallerFactory(final String name) { return loadMarshallerFactory(doPrivileged(new PrivilegedAction<ServiceLoader<ProviderDescriptor>>() { public ServiceLoader<ProviderDescriptor> run() { return ServiceLoader.load(ProviderDescriptor.class); } }), name); }