Skip to content

Instantly share code, notes, and snippets.

View ctomc's full-sized avatar

Tomaz Cerar ctomc

View GitHub Profile
@ctomc
ctomc / gist:4678429
Last active December 11, 2015 23:39
static void registerTransformers(final TransformersSubRegistration registration, final TransformersSubRegistration loggingProfileReg,
final PathElement handlerPath, final AttributeDefinition[] additionalAttributes, final String... additionalOperations) {
final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createInstance(handlerPath)
.addRawOperationTransformationOverride(ADD, LoggingOperationTransformer.INSTANCE)
.addRawOperationTransformationOverride(WRITE_ATTRIBUTE_OPERATION, LoggingOperationTransformer.INSTANCE)
.addRawOperationTransformationOverride(UPDATE_OPERATION_NAME, LoggingOperationTransformer.INSTANCE)
.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.SIMPLE_EXPRESSIONS, DEFAULT_ATTRIBUTES)
.addRejectCheck(RejectAttributeChecker.SIMPLE_EXPRESSIONS, LEGACY_ATTRIBUTES)
.addRejectCheck(RejectAttributeCh
@ctomc
ctomc / gist:3783892
Created September 25, 2012 19:23 — forked from kabir/gist:3783311
Differences with 7.1.2.Final, second try
These are all with Report on differences in the model when the management versions are different? y/[n]: y
>>>>>DOMAIN
====== Comparing core models ======
====== Resource root address: [] - Current version: 1.4.0; legacy version: 1.2.0 =======
--- Problems for relative address to root []:
Missing attributes in current: []; missing in legacy [launch-type]
<<ok
Different 'nillable' for attribute 'local-host-name'. Current: true; legacy: false