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.config.spring.parsers.specific.endpoint.support; 8 9 import org.mule.config.spring.parsers.generic.OrphanDefinitionParser; 10 11 /** 12 * A parser for "orphan" (top-level) endpoints - ie GlobalEndpoints. 13 * Because we have automatic String -> MuleEnpointURI conversion via property editors 14 * this can be used in a variety of ways. It should work directly with a simple String 15 * address attribute or, in combination with a child element (handled by 16 * {@link ChildAddressDefinitionParser}, 17 * or embedded in 18 * {@link AddressedEndpointDefinitionParser} 19 * for a more compact single-element approach. 20 * 21 * <p>This class does not support references to other endpoints.</p> 22 */ 23 public class OrphanEndpointDefinitionParser extends OrphanDefinitionParser 24 { 25 26 public OrphanEndpointDefinitionParser(Class endpoint) 27 { 28 super(endpoint, false); 29 EndpointUtils.addProperties(this); 30 EndpointUtils.addPostProcess(this); 31 } 32 33 }