public final class BundleConfig extends Object implements Serializable
Stores the bundles definitions and instantiate bundles.
Modifier and Type | Method and Description |
---|---|
WebBundleTool |
bundler() |
List<org.pageseeder.berlioz.bundler.BundleDefinition> |
definitions() |
List<File> |
getBundles(Service service) |
List<org.pageseeder.berlioz.bundler.BundleInstance> |
getInstances(Service service)
Returns the list of bundle instance for the specific service.
|
long |
getLastModifiedBundle(Service service) |
List<String> |
getPaths(Service service) |
String |
location() |
boolean |
minimize() |
static BundleConfig |
newInstance(String name,
BundleType type,
File root)
Creates new instance of a bundle configuration.
|
File |
root() |
File |
store() |
BundleType |
type() |
public List<org.pageseeder.berlioz.bundler.BundleDefinition> definitions()
public BundleType type()
public boolean minimize()
true
to minimize the code; false
otherwise.public String location()
public File root()
public File store()
public WebBundleTool bundler()
public List<File> getBundles(Service service)
service
- The service.public long getLastModifiedBundle(Service service)
service
- The service.public List<String> getPaths(Service service)
service
- The service.public List<org.pageseeder.berlioz.bundler.BundleInstance> getInstances(Service service)
service
- the service for which the bundle instances are needed.public static BundleConfig newInstance(String name, BundleType type, File root)
name
- The name of the config.type
- The type "js" or "css".root
- The root of the web application.Copyright © 2016 Allette Systems. All rights reserved.