org.ow2.petals.jbi.management.task.deployment.deploy
Class SACheckPackageTask

java.lang.Object
  extended by org.ow2.petals.jbi.management.task.AbstractLoggableTask
      extended by org.ow2.petals.jbi.management.task.AbstractCheckPackageTask
          extended by org.ow2.petals.jbi.management.task.deployment.deploy.SACheckPackageTask
All Implemented Interfaces:
Task

public class SACheckPackageTask
extends AbstractCheckPackageTask

This task checks the validity of the service assembly package. Some checking steps are described in the specification (section 6.6 of the JSR 208). The task has got a non-robust approach : it stops at the first subtask failed
and have the undo capability.

Author:
ofabre - EBM Websourcing, Frederic Gardes - eBM Websourcing

Field Summary
protected  AdminService adminService
           
protected  SystemStateService systemStateService
           
 
Fields inherited from class org.ow2.petals.jbi.management.task.AbstractLoggableTask
log
 
Constructor Summary
SACheckPackageTask(org.ow2.petals.util.LoggingUtil log, SystemStateService systemStateService, AdminService adminService)
           
 
Method Summary
protected  void checkPackage(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor, java.io.File filePackage)
           
protected  java.lang.String extractEntityName(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
           
 
Methods inherited from class org.ow2.petals.jbi.management.task.AbstractCheckPackageTask
execute, extractEntityVersion, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemStateService

protected SystemStateService systemStateService

adminService

protected AdminService adminService
Constructor Detail

SACheckPackageTask

public SACheckPackageTask(org.ow2.petals.util.LoggingUtil log,
                          SystemStateService systemStateService,
                          AdminService adminService)
Method Detail

checkPackage

protected void checkPackage(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
                            java.io.File filePackage)
                     throws org.ow2.petals.kernel.api.server.PetalsException
Specified by:
checkPackage in class AbstractCheckPackageTask
Throws:
org.ow2.petals.kernel.api.server.PetalsException

extractEntityName

protected java.lang.String extractEntityName(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
Specified by:
extractEntityName in class AbstractCheckPackageTask


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.