X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-schema-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fschema%2Fservice%2Fimpl%2FSchemaServiceActivator.java;fp=opendaylight%2Fmd-sal%2Fsal-schema-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fschema%2Fservice%2Fimpl%2FSchemaServiceActivator.java;h=0000000000000000000000000000000000000000;hb=ca7d831361dd318158b7737104a9a52d63e09944;hp=a13a872e9c1b85d1f2a4fee3a72bddc265a241f1;hpb=eff76fdd3d3ed3570aed964f8715312a01ef3a37;p=controller.git diff --git a/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/SchemaServiceActivator.java b/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/SchemaServiceActivator.java deleted file mode 100644 index a13a872e9c..0000000000 --- a/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/SchemaServiceActivator.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, 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.controller.sal.schema.service.impl; - -import java.util.Hashtable; -import org.opendaylight.controller.sal.core.api.model.SchemaService; -import org.opendaylight.controller.sal.core.api.model.YangTextSourceProvider; -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; -import org.osgi.framework.ServiceRegistration; - -public class SchemaServiceActivator implements BundleActivator { - private ServiceRegistration schemaServiceReg; - private ServiceRegistration schemaSourceReg; - private GlobalBundleScanningSchemaServiceImpl schemaService; - - @Override - public void start(final BundleContext context) { - schemaService = GlobalBundleScanningSchemaServiceImpl.createInstance(context); - schemaServiceReg = context.registerService(SchemaService.class, schemaService, new Hashtable()); - schemaSourceReg = context.registerService(YangTextSourceProvider.class, schemaService, new Hashtable()); - } - - @Override - public void stop(final BundleContext context) { - schemaServiceReg.unregister(); - schemaSourceReg.unregister(); - schemaService.close(); - } -}