/*
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * $Id$ 
 */

package com.sun.ts.tests.jaxrs.ee.rs.ext.contextresolver;

import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;

/**
 * This class is used by com.sun.ts.tests.jaxrs.ee.rs.ext.providers.ProvidersServlet  
 */
@Provider
public class EnumContextResolver implements ContextResolver<EnumProvider> {

	@Override
	public EnumProvider getContext(Class<?> type) {		
		return type == EnumProvider.class ? EnumProvider.JAXRS : null;
	}

}
