public class Repository extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_DESCRIPTOR |
static String |
MODULE_DESCRIPTOR |
static String |
PROJECT_PROPERTIES |
| Constructor and Description |
|---|
Repository() |
Repository(Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Module module) |
Module |
get(String name) |
List<String> |
getVariants() |
List<net.oneandone.sushi.fs.Node> |
link()
Call this after you've loaded all libraries
|
static Repository |
load(Resolver resolver)
simplified load method for testing
|
void |
loadApplication(Resolver resolver,
net.oneandone.sushi.fs.Node docroot,
net.oneandone.sushi.fs.Node descriptor)
An application is not a classpath item because jasmin.xml is from WEB-INF, it's not a resource.
|
void |
loadClasspath(Resolver resolver)
Loads modules from classpath
|
void |
loadLibrary(Resolver resolver,
net.oneandone.sushi.fs.Node base,
net.oneandone.sushi.fs.Node descriptor,
net.oneandone.sushi.fs.Node properties)
Core method for loading.
|
Module |
lookup(String name) |
List<Module> |
modules() |
References |
resolve(Request request) |
List<Module> |
sequence(List<Module> moduleList) |
List<String> |
sequence(String... names) |
public static final String PROJECT_PROPERTIES
public static final String MODULE_DESCRIPTOR
public static final String APPLICATION_DESCRIPTOR
public Repository()
public Repository(Attributes attributes)
public static Repository load(Resolver resolver) throws IOException
IOExceptionpublic void add(Module module)
public List<String> sequence(String... names) throws net.oneandone.graph.CyclicDependency
net.oneandone.graph.CyclicDependencypublic List<Module> sequence(List<Module> moduleList) throws net.oneandone.graph.CyclicDependency
net.oneandone.graph.CyclicDependencypublic References resolve(Request request) throws IOException, net.oneandone.graph.CyclicDependency
IOExceptionnet.oneandone.graph.CyclicDependencypublic void loadClasspath(Resolver resolver) throws IOException
IOExceptionpublic void loadApplication(Resolver resolver, net.oneandone.sushi.fs.Node docroot, net.oneandone.sushi.fs.Node descriptor) throws IOException
IOExceptionpublic void loadLibrary(Resolver resolver, net.oneandone.sushi.fs.Node base, net.oneandone.sushi.fs.Node descriptor, net.oneandone.sushi.fs.Node properties) throws IOException
base - jar file for module, docroot for applicationIOExceptionpublic List<net.oneandone.sushi.fs.Node> link()
Copyright © 2004–2017 1&1. All rights reserved.