]> git.argeo.org Git - gpl/argeo-slc.git/blob - OsgiFactory.java
817849361148da6ee3e8aaf2f7d5b15c4eaa587e
[gpl/argeo-slc.git] / OsgiFactory.java
1 package org.argeo.slc.repo;
2
3 import javax.jcr.Node;
4 import javax.jcr.RepositoryException;
5 import javax.jcr.Session;
6
7 /** OSGi Factory */
8 public interface OsgiFactory {
9 public Session openJavaSession() throws RepositoryException;
10
11 public Session openDistSession() throws RepositoryException;
12
13 public void indexNode(Node node);
14
15 /**
16 * Provide access to a third party archive in the 'dist' repository,
17 * downloading it if it is not available.
18 */
19 public Node getDist(Session distSession, String uri)
20 throws RepositoryException;
21
22 /**
23 * Provide access to a cached maven ardifact identified by its coordinates
24 * the 'dist' repository, downloading it if it is not available.
25 */
26 public Node getMaven(Session distSession, String coords)
27 throws RepositoryException;
28 }