/* * Copyright (c) 2019 Red Hat, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netconf.sal.restconf.impl; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.inject.Inject; import javax.servlet.ServletException; import org.opendaylight.mdsal.dom.api.DOMDataBroker; import org.opendaylight.mdsal.dom.api.DOMMountPointService; import org.opendaylight.mdsal.dom.api.DOMNotificationService; import org.opendaylight.mdsal.dom.api.DOMRpcService; import org.opendaylight.mdsal.dom.api.DOMSchemaService; import org.opendaylight.netconf.sal.rest.impl.RestconfApplication; import org.opendaylight.netconf.sal.restconf.api.RestConfConfig; import org.opendaylight.netconf.sal.restconf.web.WebInitializer; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressBuilder; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber; import org.opendaylight.yangtools.yang.common.Uint16; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Standalone wiring for RESTCONF. * *
ACK: Some lines here were originally inspired by the RestConfWiring class in
* opendaylight-simple which in turn was inspired by the CommunityRestConf class
* from lighty.io. The differences include (1) that this class is "pure Java"
* without depending on any binding framework utility classes; (2) we do not mix
* bierman02 and rfc8040 for proper modularity; (3) we simply use {@literal @}Inject
* instead of manual object wiring, where possible.
*
* @author Michael Vorburger.ch (see ACK note for history)
*/
@SuppressWarnings("deprecation")
// NOT @Singleton, to avoid that the blueprint-maven-plugin generates