Community
Participate
Working Groups
Build Identifier: I20110613-1736 The class org.eclipse.wst.wsdl.internal.util.WSDLResourceFactoryImpl is internal and as such not intended to be used by clients. This is fine, since the implementation of class might be changed in the future. However, to load a WSDL file in Java, this resource factory must be registered with EMF. It is registered via the respective extension point of EMF, but this does only work if the platform is running. If the platform is not running, clients must register the factory manually. If one does so, a warning is raised which says that internal classes should not be used. To avoid this, other plug-ins that register resource factories, use a public class (e.g., WSDLResourceFactory) that has a public final static field (e.g., INSTANCE) that holds an instance of the factory implementation (i.e., WSDLResourceFactoryImpl). The type of this field should be org.eclipse.emf.ecore.resource.Resource.Factory. Introducing this indirection allows clients to properly use the WSDL resource factory, which can be exchanged by another internal implementation at the same time. Reproducible: Always