public class DependencyList extends Object implements Serializable
Tracks previously sent URLs and doesn't send them again.
Constructor and Description |
---|
DependencyList()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Dependency dependency)
Adds the given dependency to be loaded by the client side.
|
void |
clearPendingSendToClient()
Clears the list of dependencies which should be sent to the client.
|
Collection<Dependency> |
getPendingSendToClient()
Returns a list of dependencies which should be sent to the client.
|
public void add(Dependency dependency)
Does not send any previously sent dependencies again.
Relative URLs are interpreted as relative to the configured
frontend
directory location. You can prefix the URL with
context://
to make it relative to the context path or use an
absolute URL to refer to files outside the frontend directory.
dependency
- the dependency to include on the pagepublic Collection<Dependency> getPendingSendToClient()
public void clearPendingSendToClient()
Copyright © 2019. All rights reserved.