/*
 * {ClassName}Provider.java
 *
 * Generated by {productTitle}  {versionName} - {utilityTitle}
 *
 * {copywrite}
 */
package {packageName}.providers;

import javax.cim.CIMArgument;
import javax.cim.CIMObjectPath;
import javax.wbem.WBEMException;
import javax.wbem.WBEMOperation;
import javax.wbem.WBEMOperationErrors;

import {packageName}.common.BaseProvider;
import {packageName}.common.ImplementationRegistry;

import {packageName}.implementation.{ClassName}Impl;



/**
 * This is the instantiation of a specific provider, no changes should be made
 * to this file.
 * 
 */
public class {ClassName}Provider extends BaseProvider {

	@Override
	protected {ClassName}Impl getImplementation() throws WBEMException {
		return ({ClassName}Impl) ImplementationRegistry
				.getImplementation({ClassName}Impl.class);
	}
	
	@Override
	public Object invokeMethod(CIMObjectPath op, String methodName,
			CIMArgument<?>[] inArgs, CIMArgument<?>[] outArgs)
			throws WBEMException {		
		throw WBEMOperationErrors.getMethodNotSupportedException(op, methodName,
				null != op.getKeys() ? WBEMOperation.INVOKEMETHOD
						: WBEMOperation.INVOKESTATICMETHOD);
	}
		
}
