/** * <copyright> * </copyright> * * */ package ssl.resource.ssl.mopp; /** * A factory for ContextDependentURIFragments. Given a feasible reference * resolver, this factory returns a matching fragment that used the resolver to * resolver proxy objects. * * @param <ContainerType> the type of the class containing the reference to be * resolved * @param <ReferenceType> the type of the reference to be resolved */ public class SslContextDependentURIFragmentFactory<ContainerType extends org.eclipse.emf.ecore.EObject, ReferenceType extends org.eclipse.emf.ecore.EObject> implements ssl.resource.ssl.ISslContextDependentURIFragmentFactory<ContainerType, ReferenceType> { private final ssl.resource.ssl.ISslReferenceResolver<ContainerType, ReferenceType> resolver; public SslContextDependentURIFragmentFactory(ssl.resource.ssl.ISslReferenceResolver<ContainerType, ReferenceType> resolver) { this.resolver = resolver; } public ssl.resource.ssl.ISslContextDependentURIFragment<?> create(String identifier, ContainerType container, org.eclipse.emf.ecore.EReference reference, int positionInReference, org.eclipse.emf.ecore.EObject proxy) { return new ssl.resource.ssl.mopp.SslContextDependentURIFragment<ContainerType, ReferenceType>(identifier, container, reference, positionInReference, proxy) { public ssl.resource.ssl.ISslReferenceResolver<ContainerType, ReferenceType> getResolver() { return resolver; } }; } }