Package com.volantis.mcs.devices.xml

Examples of com.volantis.mcs.devices.xml.XMLDeviceRepositoryConfiguration


    // javadoc inherited.
    public DeviceRepository getDeviceRepository(
                final URL repositoryUrl, final String unknownDevicesLogFileName)
            throws DeviceRepositoryException {

        XMLDeviceRepositoryConfiguration config =
                new DefaultXMLDeviceRepositoryConfiguration();
        config.setRepositoryURL(repositoryUrl);
        configureDefaultCacheValues(config);
        return createDeviceRepository(config, unknownDevicesLogFileName);
    }
View Full Code Here


        // 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) {
View Full Code Here

        if (repository instanceof LocalXMLRepository) {
            if (configuration == null) {
                result = new JiBXDeviceRepositoryAccessor(
                    repository, location);
            } else {
                final XMLDeviceRepositoryConfiguration xmlConfiguration =
                    ((XMLDeviceRepositoryConfiguration) configuration);
                result = new JiBXDeviceRepositoryAccessor(repository, location,
                    xmlConfiguration.getSchemaValidation());
            }
        } else if (repository instanceof LocalJDBCRepository) {
            // todo: update caching in the JDBDeviceRepositoryAccessor
            // we could create a JDBCConnectionReleasingDeviceRepositoryAccessor
            // at runtime, remove the related code from the accessor below and
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.xml.XMLDeviceRepositoryConfiguration

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.