Package com.volantis.devrep.repository.impl

Examples of com.volantis.devrep.repository.impl.DeviceRepositoryLocationImpl


        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


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

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

    DeviceRepositoryLocation location;

    protected void setUp() throws Exception {
        super.setUp();

        location = new DeviceRepositoryLocationImpl("#defaultProject");
    }
View Full Code Here

                    policyType instanceof IntPolicyType);

            repository = createRepository(oneMoreProject);
            accessor =
                    new JDBCDeviceRepositoryAccessor(repository,
                            new DeviceRepositoryLocationImpl(oneMoreProject));

            // Test the retrieval of a policy descriptor from VMTYPES
            populateWithSimpleTypes(0);
            policyDescriptor = accessor.retrievePolicyDescriptor(
                    connection, "Policy1", locale);
View Full Code Here

            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(
                    repository,  location, null);
View Full Code Here

            REPOSITORY_FACTORY.createXMLRepositoryConfiguration();
        try {
            final LocalRepository xmlRepository =
                REPOSITORY_FACTORY.createXMLRepository(configuration);
            return new JiBXDeviceRepositoryAccessor(xmlRepository,
                    new DeviceRepositoryLocationImpl(file.getPath()));
        } catch (RepositoryException e) {
            throw new UndeclaredThrowableException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.impl.DeviceRepositoryLocationImpl

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.