Package com.volantis.mcs.devices

Examples of com.volantis.mcs.devices.DeviceRepositoryFactory


    private DeviceRepository createDeviceRepository(
            String deviceRepositoryFileName) throws RepositoryException {

        // Create a device repository using the accessor and repository.
        // This is a bit easier to work with than the accessor.
        final DeviceRepositoryFactory repositoryFactory =
            DeviceRepositoryFactory.getDefaultInstance();
        final XMLDeviceRepositoryConfiguration configuration =
            repositoryFactory.createXMLDeviceRepositoryConfiguration();
        try {
            configuration.setRepositoryURL(
                new File(deviceRepositoryFileName).toURL());
            final DeviceRepository deviceRepository =
                repositoryFactory.createDeviceRepository(configuration);
            return deviceRepository;
        } catch (MalformedURLException e) {
            throw new RepositoryException(e);
        } catch (DeviceRepositoryException e) {
            throw new RepositoryException(e);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.DeviceRepositoryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.