public static final class ClasspathSpecifier.Element extends Object implements Serializable
Constructor and Description |
---|
Element(Path path)
Create a new classpath for the given path.
|
Element(Path path,
CacheScopeSpecifier cacheScope,
boolean dynamic,
OSGIOptions osgiOptions)
Create a new classpath for the given path.
|
Modifier and Type | Method and Description |
---|---|
CacheScopeSpecifier |
cacheScope()
Returns the cacheScope of this element.
|
ClasspathSpecifier.Element |
cacheScope(CacheScopeSpecifier cacheScope)
Returns a new ClasspathElement, overriding the cacheScope.
|
boolean |
dynamic()
Returns whether the classpath element can be dynamically updated at runtime.
|
ClasspathSpecifier.Element |
dynamic(boolean dynamic)
Returns a new ClasspathElement, overriding
dynamic . |
OSGIOptions |
osgiOptions()
Returns the osgi options of this element.
|
ClasspathSpecifier.Element |
osgiOptions(OSGIOptions osgiOptions)
Returns a new ClasspathElement, overriding the osgiOptions.
|
Path |
path()
Returns the path of this classpath element.
|
ClasspathSpecifier.Element |
path(Path path)
Returns a new ClasspathElement, overriding the path.
|
public Element(Path path)
path
- the location of the element. May either be a directory or a file.public Element(Path path, CacheScopeSpecifier cacheScope, boolean dynamic, OSGIOptions osgiOptions)
path
- the location of the element. May either be a directory or a file.cacheScope
- specifies where to cache the elementdynamic
- if true, the classpath element will be scanned each time we run a job to
see whether its checksum has changed. if false, the checksum will be cached in-memory so that
the checksum is only recomputed upon restart.osgiOptions
- extra options for the case where this is an osgi classpath element. May
be null in the case of a non-osgi elementpublic Path path()
public CacheScopeSpecifier cacheScope()
public boolean dynamic()
public OSGIOptions osgiOptions()
public ClasspathSpecifier.Element path(Path path)
path
- the new pathpublic ClasspathSpecifier.Element cacheScope(CacheScopeSpecifier cacheScope)
cacheScope
- the new cacheScopepublic ClasspathSpecifier.Element dynamic(boolean dynamic)
dynamic
.dynamic
- the new value for dynamic
public ClasspathSpecifier.Element osgiOptions(OSGIOptions osgiOptions)
osgiOptions
- the new osgiOptionsCopyright © 2016 Actian Corporation. All rights reserved.