public class ResourceChangeHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static ResourceChangeHandler |
create(WroManagerFactory managerFactory,
org.apache.maven.plugin.logging.Log log)
Factory method which requires all mandatory fields.
|
void |
destroy()
Destroys all information about resource tracked for changes.
|
void |
forget(Resource resource)
After invoking this method on a resource, the next invocation of
isResourceChanged(Resource) will return
true. |
org.apache.maven.plugin.logging.Log |
getLog() |
boolean |
isIncrementalBuild() |
boolean |
isResourceChanged(Resource resource) |
void |
remember(Resource resource)
Will persist the information regarding the provided resource in some internal store.
|
ResourceChangeHandler |
setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext) |
ResourceChangeHandler |
setBuildDirectory(File buildDirectory) |
ResourceChangeHandler |
setIncrementalBuildEnabled(boolean incrementalBuildEnabled) |
ResourceChangeHandler |
setLog(org.apache.maven.plugin.logging.Log log) |
ResourceChangeHandler |
setManagerFactory(WroManagerFactory wroManagerFactory) |
public static ResourceChangeHandler create(WroManagerFactory managerFactory, org.apache.maven.plugin.logging.Log log)
public boolean isResourceChanged(Resource resource)
public void remember(Resource resource)
resource - Resource to touch.public org.apache.maven.plugin.logging.Log getLog()
public ResourceChangeHandler setManagerFactory(WroManagerFactory wroManagerFactory)
public ResourceChangeHandler setLog(org.apache.maven.plugin.logging.Log log)
public ResourceChangeHandler setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext)
public ResourceChangeHandler setBuildDirectory(File buildDirectory)
public ResourceChangeHandler setIncrementalBuildEnabled(boolean incrementalBuildEnabled)
public boolean isIncrementalBuild()
public void destroy()
public void forget(Resource resource)
isResourceChanged(Resource) will return
true.resourceUri - uri of the resource to clear from persisted storage.Copyright © 2008-2014. All Rights Reserved.