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(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(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 BatooException
t - the exceptionBatooExceptionpublic boolean hasPerformed(TypeImpl<?> type)
type - the typeprotected final void perform()
throws BatooException
BatooExceptionpublic abstract Void perform(X type) throws BatooException
type - the type to perform forBatooException - thrown in case of underlying errorpublic void performed(X type)
type - the type to markCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.