/** * Core method which is exposed for the external use, and this will find the proper * {@link EndpointFactory} and create the endpoint which is of the format {@link Endpoint}. * * @param elem XML from which the endpoint will be built * @param isAnonymous whether this is an anonymous endpoint or not * @param properties bag of properties to pass in any information to the factory * @return created endpoint */ public static Endpoint getEndpointFromElement(OMElement elem, boolean isAnonymous, Properties properties) { return getEndpointFactory(elem).createEndpointWithName(elem, isAnonymous, properties); }
/** * Core method which is exposed for the external use, and this will find the proper * {@link EndpointFactory} and create the endpoint which is of the format {@link Endpoint}. * * @param elem XML from which the endpoint will be built * @param isAnonymous whether this is an anonymous endpoint or not * @param properties bag of properties to pass in any information to the factory * @return created endpoint */ public static Endpoint getEndpointFromElement(OMElement elem, boolean isAnonymous, Properties properties) { return getEndpointFactory(elem).createEndpointWithName(elem, isAnonymous, properties); }
/** * Creates the {@link Endpoint} object from the provided {@link OMNode} * * @param om XML node from which the endpoint will be built * @param properties bag of properties to pass in any information to the factory * @return created endpoint as an {@link Object} */ public Object getObjectFromOMNode(OMNode om, Properties properties) { if (om instanceof OMElement) { return createEndpointWithName((OMElement) om, false, properties); } else { handleException("Invalid XML configuration for an Endpoint. OMElement expected"); } return null; }
/** * Creates the {@link Endpoint} object from the provided {@link OMNode} * * @param om XML node from which the endpoint will be built * @param properties bag of properties to pass in any information to the factory * @return created endpoint as an {@link Object} */ public Object getObjectFromOMNode(OMNode om, Properties properties) { if (om instanceof OMElement) { return createEndpointWithName((OMElement) om, false, properties); } else { handleException("Invalid XML configuration for an Endpoint. OMElement expected"); } return null; }
/** * Core method which is exposed for the external use, and this will find the proper * {@link EndpointFactory} and create the endpoint which is of the format {@link Endpoint}.However * definition for this endpoint will be built using a custom Endpoint Defn factory. * * @param elem XML from which the endpoint will be built * @param factory custom definition factory which this endpoint will be used to build * @param isAnonymous whether this is an anonymous endpoint or not * @param properties bag of properties to pass in any information to the factory * @return created endpoint */ public static Endpoint getEndpointFromElement(OMElement elem,DefinitionFactory factory, boolean isAnonymous, Properties properties) { EndpointFactory fac = getEndpointFactory(elem); fac.setEndpointDefinitionFactory(factory); return fac.createEndpointWithName(elem, isAnonymous, properties); }
/** * Core method which is exposed for the external use, and this will find the proper * {@link EndpointFactory} and create the endpoint which is of the format {@link Endpoint}.However * definition for this endpoint will be built using a custom Endpoint Defn factory. * * @param elem XML from which the endpoint will be built * @param factory custom definition factory which this endpoint will be used to build * @param isAnonymous whether this is an anonymous endpoint or not * @param properties bag of properties to pass in any information to the factory * @return created endpoint */ public static Endpoint getEndpointFromElement(OMElement elem,DefinitionFactory factory, boolean isAnonymous, Properties properties) { EndpointFactory fac = getEndpointFactory(elem); fac.setEndpointDefinitionFactory(factory); return fac.createEndpointWithName(elem, isAnonymous, properties); }