fnug.config
Interface BundleConfig

All Known Implementing Classes:
DefaultBundleConfig

public interface BundleConfig

Config for a Bundle.

Author:
Martin Algesten

Field Summary
static boolean DEFAULT_CHECK_MODIFIED
          Default value for checkModifiedInterval().
 
Method Summary
 String basePath()
          Base path of the bundle.
 int checkModifiedInterval()
          The interval in milliseconds that we are to check the modified dates of resources resolved by this bundle.
 Resource configResource()
          Returns the resource responsible for this configuration.
 String[] files()
          Files that comprises this bundle.
 String[] jsCompileArgs()
          Additional compilation arguments passed to JsCompressor.
 String[] jsLintArgs()
          The arguments used for JSLint.
 String name()
          Name of the bundle.
 

Field Detail

DEFAULT_CHECK_MODIFIED

static final boolean DEFAULT_CHECK_MODIFIED
Default value for checkModifiedInterval(). Set to true .

See Also:
Constant Field Values
Method Detail

configResource

Resource configResource()
Returns the resource responsible for this configuration.

Returns:
associated resource.

name

String name()
Name of the bundle.

Returns:
Bundle name. Must match Bundle.BUNDLE_ALLOWED_CHARS.

basePath

String basePath()
Base path of the bundle. See Resource.getBasePath().

Returns:
bundle base path

jsLintArgs

String[] jsLintArgs()
The arguments used for JSLint. No arguments indicates that jslint is turned off.

Returns:
The arguments used for JSLint. Example: ["white: true", "onevar: true"].

checkModifiedInterval

int checkModifiedInterval()
The interval in milliseconds that we are to check the modified dates of resources resolved by this bundle. A value of 0 disables modified checks.

Returns:
number of milliseconds between checks.

jsCompileArgs

String[] jsCompileArgs()
Additional compilation arguments passed to JsCompressor.

Returns:
arguments passed to the javascript compressor.

files

String[] files()
Files that comprises this bundle. Additional dependencies will be discovered using Resource.findRequiresTags().

Returns:
Starting point files of this bundle.


Copyright © 2012. All Rights Reserved.