public class Dependency extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Dependency.Type
The type of dependency.
|
Constructor and Description |
---|
Dependency(Dependency.Type type,
String url)
Creates a new dependency of the given type, to be loaded from the given
URL.
|
Modifier and Type | Method and Description |
---|---|
static List<Dependency> |
findDependencies(List<Class<? extends ClientConnector>> connectorTypes,
LegacyCommunicationManager manager,
DependencyFilter.FilterContext context)
Finds all the URLs defined for the given classes, registers the URLs to
the communication manager, passes the registered dependencies through any
defined filters and returns the filtered collection of dependencies to
load.
|
Dependency.Type |
getType()
Gets the type of the dependency.
|
String |
getUrl()
Gets the untranslated URL for the dependency.
|
public Dependency(Dependency.Type type, String url)
The URL is passed through the translation mechanism before loading, so custom protocols such as "vaadin://" can be used.
type
- the type of dependency, not null
url
- the URL to load the dependency from, not null
public String getUrl()
public Dependency.Type getType()
public static List<Dependency> findDependencies(List<Class<? extends ClientConnector>> connectorTypes, LegacyCommunicationManager manager, DependencyFilter.FilterContext context)
connectorTypes
- the collection of connector classes to scanmanager
- a reference to the communication manager which tracks
dependenciescontext
- the context information for the filtering operationCopyright © 2018 Vaadin Ltd. All rights reserved.