Package helma.framework.repository

Examples of helma.framework.repository.Repository


    private synchronized void checkRepositories() throws IOException {
        List list = app.getRepositories();

        // walk through repositories and check if any of them have changed.
        for (int i = 0; i < list.size(); i++) {
            Repository repository = (Repository) list.get(i);
            long lastScan = lastRepoScan.containsKey(repository) ?
                    ((Long) lastRepoScan.get(repository)).longValue() : 0;
            if (repository.lastModified() != lastScan) {
                lastRepoScan.put(repository, new Long(repository.lastModified()));
                checkRepository(repository, false);
            }
        }

        boolean debug = "true".equalsIgnoreCase(app.getProperty("helma.debugTypeManager"));
View Full Code Here


                            repositoryImpl = "helma.framework.repository.FileRepository";
                        }
                    }

                    try {
                        Repository newRepository = (Repository) Class.forName(repositoryImpl)
                                .getConstructor(parameters)
                                .newInstance(new Object[] {repositoryArgs});
                        repositoryList.add(newRepository);
                    } catch (Exception ex) {
                        getLogger().error("Adding repository " + repositoryArgs + " failed. " +
View Full Code Here

            // repositories, if we belong to any application
            if (resourceName != null) {
                Iterator iterator = app.getRepositories().iterator();
                while (iterator.hasNext()) {
                    try {
                        Repository repository = (Repository) iterator.next();
                        Resource res = repository.getResource(resourceName);
                        if (res != null && res.exists()) {
                            InputStream in = res.getInputStream();
                            temp.load(in);
                            in.close();
                        }
View Full Code Here

        long checksum = 0;

        if (resourceName != null) {
            Iterator iterator = app.getRepositories().iterator();
            while (iterator.hasNext()) {
                Repository repository = (Repository) iterator.next();
                Resource resource = repository.getResource(resourceName);
                if (resource != null) {
                    checksum += resource.lastModified();
                }
            }
        }
View Full Code Here

                        repositoryImpl = "helma.framework.repository.FileRepository";
                    }
                }
       
                try {
                    Repository newRepository = (Repository) Class.forName(repositoryImpl)
                        .getConstructor(parameters)
                        .newInstance(new Object[] {repositoryArgs});
                    repositoryList.add(newRepository);
                    log("adding repository: " + repositoryArgs);
                } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of helma.framework.repository.Repository

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.