X - the base type for the operationpublic abstract class DeploymentManager<X> extends Object
Facilitates a unique exception handling and thread management.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DeploymentManager.Context
The context for the operation
|
| Constructor and Description |
|---|
DeploymentManager(org.batoo.common.log.BLogger log,
String name,
MetamodelImpl metamodel,
DeploymentManager.Context context) |
| Modifier and Type | Method and Description |
|---|---|
MetamodelImpl |
getMetamodel()
Returns the metamodel.
|
protected void |
handleException(Throwable t)
Handles the exception.
|
boolean |
hasPerformed(TypeImpl<?> type)
Returns if the type has performed.
|
protected void |
perform()
Performs the deployment unit for all the types.
|
abstract Void |
perform(X type)
Performs the actual task on the type.
|
void |
performed(X type)
Marks the type as performed.
|
public DeploymentManager(org.batoo.common.log.BLogger log,
String name,
MetamodelImpl metamodel,
DeploymentManager.Context context)
log - the log to usename - the name of the deployment manager.metamodel - the metamodelcontext - the context for the operationpublic MetamodelImpl getMetamodel()
protected void handleException(Throwable t) throws org.batoo.common.BatooException
t - the exceptionorg.batoo.common.BatooExceptionpublic boolean hasPerformed(TypeImpl<?> type)
type - the typeprotected final void perform()
throws org.batoo.common.BatooException
org.batoo.common.BatooExceptionpublic abstract Void perform(X type) throws org.batoo.common.BatooException
type - the type to perform fororg.batoo.common.BatooException - thrown in case of underlying errorpublic void performed(X type)
type - the type to markCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.