Package com.volantis.devrep.repository.api.accessors

Examples of com.volantis.devrep.repository.api.accessors.DeviceRepositoryAccessor


            // Create the JBDC repository.
            InternalJDBCRepository repository = (InternalJDBCRepository)                
                    factory.createJDBCRepository(repositoryConfiguration);

            // Create the JDBC accessor.
            DeviceRepositoryAccessor accessor =
                    new JDBCDeviceRepositoryAccessor(repository, location);

            configureCache(accessor, configuration);
            // Initialise the device pattern cache.
            initialiseDevicePatternCache(repository, accessor);
View Full Code Here


            LocalRepository repository =
                    factory.createXMLRepository(null);

            // Create the XML accessor.

            DeviceRepositoryAccessor accessor =
                REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
                    repository, location, configuration);

            configureCache(accessor, configuration);
            // Initialise the device pattern cache.
View Full Code Here

            DeviceRepositoryLocation location =
                    new DeviceRepositoryLocationImpl(repositoryUrl.getFile());

            // Create the XML accessor.
            DeviceRepositoryAccessor accessor =
                REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
                    repository,  location, null);

            // Return the default device repository impl using the XML
            // repository and accessor we just created.
View Full Code Here

            throws RepositoryException {

        String ua, cDeviceName, rDeviceName;
        boolean successful = true;

        DeviceRepositoryAccessor cacheAccessor =
            REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
                connection1.getLocalRepository(), location1, null);

        cacheAccessor.initializeDevicePatternCache(connection1);

        DeviceRepositoryAccessor repositoryAccessor =
            REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
                connection2.getLocalRepository(), location2, null);

        try {
            System.out.println("Summary");
            System.out.println("-------");
            for (int i = 0; i < userAgents.length; i++) {
                ua = userAgents[i];
                if ("".equals(ua.trim()) || ua.trim().startsWith("#")) {
                    continue;
                }

                cDeviceName = cacheAccessor
                        .retrieveMatchingDeviceName(ua);

                rDeviceName = repositoryAccessor
                        .retrieveMatchingDeviceName(ua);

                System.out.println("\n");
                if (((cDeviceName != null && rDeviceName != null) &&
                        !cDeviceName.equals(rDeviceName)) ||
View Full Code Here

                if (deviceRepository == null) {
                    // Retrieve the DeviceRepository configured in the runtime.
                    LocalRepository repository =
                            volantisBean.getDeviceRepository();

                    DeviceRepositoryAccessor accessor =
                            volantisBean.getDeviceRepositoryAccessor();

                    // get logger for abstract and unknown devices
                    deviceRepository =
                        DEVICE_REPOSITORY_FACTORY.createDeviceRepository(
View Full Code Here

    public DeviceRepositoryAccessor createDeviceRepositoryAccessor(
            final LocalRepository repository,
            final DeviceRepositoryLocation location,
            final DeviceRepositoryConfiguration configuration) {

        final DeviceRepositoryAccessor result;
        if (repository instanceof LocalXMLRepository) {
            if (configuration == null) {
                result = new JiBXDeviceRepositoryAccessor(
                    repository, location);
            } else {
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.accessors.DeviceRepositoryAccessor

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.