use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class TimerServiceResourceDefinition method registerTransformers_1_3_0.
public static void registerTransformers_1_3_0(ResourceTransformationDescriptionBuilder parent) {
ResourceTransformationDescriptionBuilder timerService = parent.addChildResource(EJB3SubsystemModel.TIMER_SERVICE_PATH);
DatabaseDataStoreResourceDefinition.registerTransformers1_3_0(timerService);
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class EJB3RemoteResourceDefinition method registerTransformers_3_0.
static void registerTransformers_3_0(ResourceTransformationDescriptionBuilder parent) {
ResourceTransformationDescriptionBuilder remoteService = parent.addChildResource(EJB3SubsystemModel.REMOTE_SERVICE_PATH);
remoteService.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(BeanManagerFactoryBuilderConfiguration.DEFAULT_CONTAINER_NAME)), CLIENT_MAPPINGS_CLUSTER_NAME).addRejectCheck(RejectAttributeChecker.DEFINED, CLIENT_MAPPINGS_CLUSTER_NAME).setDiscard(DiscardAttributeChecker.ALWAYS, //as this does not affect functionality we just discard
EXECUTE_IN_WORKER).end();
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class EJB3RemoteResourceDefinition method registerTransformers_1_2_0_and_1_3_0.
static void registerTransformers_1_2_0_and_1_3_0(ResourceTransformationDescriptionBuilder parent) {
ResourceTransformationDescriptionBuilder remoteService = parent.addChildResource(EJB3SubsystemModel.REMOTE_SERVICE_PATH);
remoteService.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(BeanManagerFactoryBuilderConfiguration.DEFAULT_CONTAINER_NAME)), CLIENT_MAPPINGS_CLUSTER_NAME).addRejectCheck(RejectAttributeChecker.DEFINED, CLIENT_MAPPINGS_CLUSTER_NAME).setDiscard(DiscardAttributeChecker.ALWAYS, //as this does not affect functionality we just discard
EXECUTE_IN_WORKER).end();
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class EJB3SubsystemRootResourceDefinition method registerTransformers_4_0_0.
private static void registerTransformers_4_0_0(SubsystemRegistration subsystemRegistration) {
final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
ApplicationSecurityDomainDefinition.registerTransformers_4_0(builder);
IdentityResourceDefinition.registerTransformers_4_0(builder);
RemotingProfileResourceDefinition.registerTransformers_4_0(builder);
builder.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), EJB3SubsystemRootResourceDefinition.ALLOW_EJB_NAME_REGEX);
builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.ALLOW_EJB_NAME_REGEX);
builder.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), EJB3SubsystemRootResourceDefinition.ENABLE_GRACEFUL_TXN_SHUTDOWN);
builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.ENABLE_GRACEFUL_TXN_SHUTDOWN);
TransformationDescription.Tools.register(builder.build(), subsystemRegistration, VERSION_4_0_0);
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class TransactionExtension method registerTransformers.
// Transformation
/**
* Register the transformers for older model versions.
*
* @param subsystem the subsystems registration
*/
private void registerTransformers(SubsystemRegistration subsystem) {
ChainedTransformationDescriptionBuilder chainedBuilder = TransformationDescriptionBuilder.Factory.createChainedSubystemInstance(subsystem.getSubsystemVersion());
/*final ModelVersion v2_0_0 = ModelVersion.create(2, 0, 0);
ResourceTransformationDescriptionBuilder builder_2_0 = chainedBuilder.createBuilder(subsystem.getSubsystemVersion(), v2_0_0);
//Versions < 3.0.0 is not able to handle commit-markable-resource
builder_2_0.rejectChildResource(CMResourceResourceDefinition.PATH_CM_RESOURCE);
builder_2_0.getAttributeBuilder()
.addRename(TransactionSubsystemRootResourceDefinition.USE_JOURNAL_STORE, CommonAttributes.USE_HORNETQ_STORE)
.addRename(TransactionSubsystemRootResourceDefinition.JOURNAL_STORE_ENABLE_ASYNC_IO, CommonAttributes.HORNETQ_STORE_ENABLE_ASYNC_IO);*/
// 2.0.0 --> 1.5.0
ResourceTransformationDescriptionBuilder builderEap64 = chainedBuilder.createBuilder(subsystem.getSubsystemVersion(), MODEL_VERSION_EAP64);
builderEap64.getAttributeBuilder().addRename(TransactionSubsystemRootResourceDefinition.USE_JOURNAL_STORE, CommonAttributes.USE_HORNETQ_STORE).addRename(TransactionSubsystemRootResourceDefinition.JOURNAL_STORE_ENABLE_ASYNC_IO, CommonAttributes.HORNETQ_STORE_ENABLE_ASYNC_IO).addRename(TransactionSubsystemRootResourceDefinition.STATISTICS_ENABLED, CommonAttributes.ENABLE_STATISTICS);
// 1.5.0 --> 1.4.0
ResourceTransformationDescriptionBuilder builderEap63 = chainedBuilder.createBuilder(MODEL_VERSION_EAP64, MODEL_VERSION_EAP63);
builderEap63.rejectChildResource(CMResourceResourceDefinition.PATH_CM_RESOURCE);
//1.4.0 --> 1.3.0
ResourceTransformationDescriptionBuilder builderEap62 = chainedBuilder.createBuilder(MODEL_VERSION_EAP63, MODEL_VERSION_EAP62);
chainedBuilder.buildAndRegister(subsystem, new ModelVersion[] { MODEL_VERSION_EAP62, MODEL_VERSION_EAP63, MODEL_VERSION_EAP64 });
}
Aggregations