Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Substantial refactoring of the InsteonPLM binding #1542

Merged
merged 1 commit into from
Nov 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@
*/
package org.openhab.binding.insteonplm;

import java.io.IOException;
import java.io.InputStream;

import javax.xml.parsers.ParserConfigurationException;

import org.openhab.binding.insteonplm.internal.device.DeviceCategoryLoader;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Version;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;

/**
* Extension of the default OSGi bundle activator.
Expand All @@ -39,16 +32,6 @@ public final class InsteonPLMActivator implements BundleActivator {
public void start(BundleContext bc) throws Exception {
context = bc;
logger.info("Insteon PLM binding has been started.");
try {
InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream("categories.xml");
DeviceCategoryLoader.loadCategoryDefinitionsXML(stream);
} catch (IOException e) {
logger.error("hit i/o exception when trying to read device categories", e);
} catch (ParserConfigurationException e) {
logger.error("parser config exception when trying to read device categories", e);
} catch (SAXException e) {
logger.error("xml parser exception when trying to read device categories", e);
}
}

/**
Expand Down
Loading