Class ProjectLifecycle
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.ignition.gateway.project.ProjectLifecycle
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal RuntimeProjectprotected voidCalled after a series of calls to the resource modification methods is complete.protected voidCalled before a series of calls to the resource modification methods begins.protected voidonManifestChanged(ProjectManifest manifest) TheProjectManifestfor the Project managed by this lifecycle has changed.protected abstract voidonResourcesCreated(List<ProjectResource> resources) Resources matching the interests of this lifecycle were created.protected abstract voidonResourcesDeleted(List<ProjectResourceId> resourceIds) Resources matching the interests of this lifecycle were deleted.protected abstract voidonResourcesModified(List<ProjectResource> resources) Resources matching the interests of this lifecycle were modified.protected final voidprotected abstract voidonShutdown(List<ProjectResourceId> resourceIds) Shut down thisProjectLifecycle.protected final voidprotected abstract voidonStartup(List<ProjectResource> resources) Start thisProjectLifecycle.Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startup
- 
Constructor Details- 
ProjectLifecycle
 
- 
- 
Method Details- 
onStartupprotected final void onStartup()- Specified by:
- onStartupin class- AbstractLifecycle
 
- 
onShutdownprotected final void onShutdown()- Specified by:
- onShutdownin class- AbstractLifecycle
 
- 
getProject
- 
onStartupStart thisProjectLifecycle.- Parameters:
- resources- initial list of resources that match the scope and type interests of this lifecycle.
 
- 
onShutdownShut down thisProjectLifecycle.- Parameters:
- resourceIds- list of- ProjectResourceIds that match the scope and type interests of this lifecycle.
 
- 
onBeforeChangesprotected void onBeforeChanges()Called before a series of calls to the resource modification methods begins.
- 
onAfterChangesprotected void onAfterChanges()Called after a series of calls to the resource modification methods is complete.
- 
onManifestChangedTheProjectManifestfor the Project managed by this lifecycle has changed.- Parameters:
- manifest- the updated- ProjectManifest.
 
- 
onResourcesCreatedResources 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-- ProjectResources matching the interests of this lifecycle.
 
- 
onResourcesModifiedResources 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-- ProjectResources matching the interests of this lifecycle.
 
- 
onResourcesDeletedResources 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-- ProjectResourceIds matching the interests of this lifecycle.
 
 
-