create
public static ServiceDescriptor create(ServiceType type,
String name,
Properties props,
Properties overrides,
MuleContext muleContext,
ClassLoader classLoader)
throws ServiceException
Factory method to create a new service descriptor.
- Parameters:
type
- the service type to createname
- the name of the service. In the case of a stransport service, the full endpoint sheme should be used here
i.e. 'cxf:http'props
- The properties defined by this service typeoverrides
- any overrides that should be configured on top of the standard propertiers for the servicemuleContext
- the MuleContext for this mule instanceclassLoader
- the ClassLoader to use when loading classes
- Returns:
- a ServiceDescriptor instance that can be used to create the service objects associated with the service name
- Throws:
ServiceException
- if the service cannot be located