1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.api.model; 8 9 import org.mule.api.registry.ServiceDescriptor; 10 import org.mule.api.registry.ServiceException; 11 12 /** 13 * <code>ModelServiceDescriptor</code> describes the necessery information for 14 * creating a model from a service descriptor. A service descriptor should be 15 * located at META-INF/services/org/mule/models/<type> where type is the 16 * type of the model to be created. The service descriptor is in the form of 17 * string key value pairs. 18 */ 19 public interface ModelServiceDescriptor extends ServiceDescriptor 20 { 21 Model createModel() throws ServiceException; 22 23 Class<Model> getModelClass() throws ServiceException; 24 }