Class ProjectLifecycle
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.ignition.gateway.project.ProjectLifecycle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RuntimeProject
protected void
Called after a series of calls to the resource modification methods is complete.protected void
Called before a series of calls to the resource modification methods begins.protected void
onManifestChanged
(ProjectManifest manifest) TheProjectManifest
for the Project managed by this lifecycle has changed.protected abstract void
onResourcesCreated
(List<ProjectResource> resources) Resources matching the interests of this lifecycle were created.protected abstract void
onResourcesDeleted
(List<ProjectResourceId> resourceIds) Resources matching the interests of this lifecycle were deleted.protected abstract void
onResourcesModified
(List<ProjectResource> resources) Resources matching the interests of this lifecycle were modified.protected final void
protected abstract void
onShutdown
(List<ProjectResourceId> resourceIds) Shut down thisProjectLifecycle
.protected final void
protected abstract void
onStartup
(List<ProjectResource> resources) Start thisProjectLifecycle
.Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Constructor Details
-
ProjectLifecycle
-
-
Method Details
-
onStartup
protected final void onStartup()- Specified by:
onStartup
in classAbstractLifecycle
-
onShutdown
protected final void onShutdown()- Specified by:
onShutdown
in classAbstractLifecycle
-
getProject
-
onStartup
Start thisProjectLifecycle
.- Parameters:
resources
- initial list of resources that match the scope and type interests of this lifecycle.
-
onShutdown
Shut down thisProjectLifecycle
.- Parameters:
resourceIds
- list ofProjectResourceId
s that match the scope and type interests of this lifecycle.
-
onBeforeChanges
protected void onBeforeChanges()Called before a series of calls to the resource modification methods begins. -
onAfterChanges
protected void onAfterChanges()Called after a series of calls to the resource modification methods is complete. -
onManifestChanged
TheProjectManifest
for the Project managed by this lifecycle has changed.- Parameters:
manifest
- the updatedProjectManifest
.
-
onResourcesCreated
Resources matching the interests of this lifecycle were created.This is a chance for subclasses to do something of interest with these new resources, e.g. "run" them.
- Parameters:
resources
-ProjectResource
s matching the interests of this lifecycle.
-
onResourcesModified
Resources matching the interests of this lifecycle were modified.This is a chance for subclasses to do something of interest with these modified resources, e.g. stop "running" something based on the old resource and start "running" something based on the newly modified resource.
- Parameters:
resources
-ProjectResource
s matching the interests of this lifecycle.
-
onResourcesDeleted
Resources matching the interests of this lifecycle were deleted.This is a chance for subclasses to do something of interest with these deleted resources, e.g. stop "running" something based on the resource.
- Parameters:
resourceIds
-ProjectResourceId
s matching the interests of this lifecycle.
-