Examples of DeviceRepositoryLocation


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

        repositoryConfiguration.setDataSource(
                configuration.getDataSource());
        repositoryConfiguration.setReleaseConnectionsImmediately(false)
        repositoryConfiguration.setShortNames(configuration.isUseShortNames());

        DeviceRepositoryLocation location = new DeviceRepositoryLocationImpl(
                configuration.getDefaultProject());

        try {
            // Create the JBDC repository.
            InternalJDBCRepository repository = (InternalJDBCRepository)                
View Full Code Here

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

            throws DeviceRepositoryException {
       
        try {
            // Create the XML repository
            // Note that we can only handle file: urls.
            DeviceRepositoryLocation location =
                    new DeviceRepositoryLocationImpl(
                            configuration.getRepositoryUrl().getFile());

            XMLRepositoryFactory factory =
                    XMLRepositoryFactory.getDefaultInstance();
View Full Code Here

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

            // Note that we can only handle file: urls.
            XMLRepositoryFactory factory =
                    XMLRepositoryFactory.getDefaultInstance();
            LocalRepository repository = factory.createXMLRepository(null);

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

            // Create the XML accessor.
            DeviceRepositoryAccessor accessor =
                REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
View Full Code Here

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

        try {
            String repositoryType =
                Environment.getParameter(config, "repository-type");
            LocalRepository repository;

            DeviceRepositoryLocation location;

            // NOTE: this configuration mirrored the "old" way of configuring
            // local repositories, presumably it should be updated to
            // mirror the new way?
            if (repositoryType != null && repositoryType.equals("xml")) {
View Full Code Here

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

            throws ConfigurationException {

        // We have implemented VolantisInternals as a workaround rather than
        // use reflection because this is all sh*te anyway.
        VolantisInternals internals = new VolantisInternals(volantis);
        DeviceRepositoryLocation location =
                internals.getDeviceRepositoryLocation();

        // This cannot be tested because of a hack in Volantis which
        // throws away this value if the file does not exist.
//        if (config.standardFileDeviceRepositoryLocation != null) {
//            Assert.assertEquals(config.standardFileDeviceRepositoryLocation,
//                    props.get(XMLRepository.DEVICE_REPOSITORY_PROPERTY));
//        }
        if (config.standardJDBCDeviceRepositoryProject != null) {
            Assert.assertEquals(config.standardJDBCDeviceRepositoryProject,
                    location.getDeviceRepositoryName());
        }
    }
View Full Code Here

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

                // about not being able to create a JDBC repository.
                logger.warn("local-repository-type-unknown");
            }

            // Determine the repository to use to access the device.
            DeviceRepositoryLocation deviceRepositoryLocation =
                    getDeviceRepositoryLocation(configContext);
            if (deviceConnectionType == RepositoryConnectionType.JDBC_REPOSITORY_CONNECTION) {
                deviceRepository = jdbcRepository;
            } else if (deviceConnectionType == RepositoryConnectionType.XML_REPOSITORY_CONNECTION) {
                deviceRepository = xmlRepository;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.