ejb3/src/main/java/org/jboss/as/ejb3/subsystem/EJBTransformers.java
@SuppressWarnings("deprecation")
    private static void registerPassivationStoreTransformers_1_2_1_and_1_3_0(ResourceTransformationDescriptionBuilder parent) {

        ResourceTransformationDescriptionBuilder child = parent.addChildRedirection(PassivationStoreResourceDefinition.INSTANCE.getPathElement(), PathElement.pathElement(EJB3SubsystemModel.CLUSTER_PASSIVATION_STORE));
        child.getAttributeBuilder()
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode(true), true), EJB3SubsystemModel.PASSIVATE_EVENTS_ON_REPLICATE)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode("default"), true), EJB3SubsystemModel.CLIENT_MAPPINGS_CACHE)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode().set(Long.valueOf(Integer.MAX_VALUE)), true), EJB3SubsystemModel.IDLE_TIMEOUT)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode().set(TimeUnit.SECONDS.name()), true), EJB3SubsystemModel.IDLE_TIMEOUT_UNIT)
        ;
    }
@SuppressWarnings("deprecation")
    private static void registerPassivationStoreTransformers_1_2_1_and_1_3_0(ResourceTransformationDescriptionBuilder parent) {

        ResourceTransformationDescriptionBuilder child = parent.addChildRedirection(PassivationStoreResourceDefinition.INSTANCE.getPathElement(), PathElement.pathElement(EJB3SubsystemModel.CLUSTER_PASSIVATION_STORE));
        child.getAttributeBuilder()
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode(true), true), EJB3SubsystemModel.PASSIVATE_EVENTS_ON_REPLICATE)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode("default"), true), EJB3SubsystemModel.CLIENT_MAPPINGS_CACHE)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode().set(Long.valueOf(Integer.MAX_VALUE)), true), EJB3SubsystemModel.IDLE_TIMEOUT)
                .setValueConverter(AttributeConverter.Factory.createHardCoded(new ModelNode().set(TimeUnit.SECONDS.name()), true), EJB3SubsystemModel.IDLE_TIMEOUT_UNIT)
        ;
    }
@ SuppressWarnings ( "deprecation" ) private static void registerPassivationStoreTransformers_1_2_1_and_1_3_0 ( ResourceTransformationDescriptionBuilder parent ) { ResourceTransformationDescriptionBuilder child = parent . addChildRedirection ( PassivationStoreResourceDefinition . INSTANCE . getPathElement ( ) , PathElement . pathElement ( EJB3SubsystemModel . CLUSTER_PASSIVATION_STORE ) ) ; child . getAttributeBuilder ( ) . setValueConverter ( AttributeConverter . Factory . createHardCoded ( new ModelNode ( true ) , true ) , EJB3SubsystemModel . PASSIVATE_EVENTS_ON_REPLICATE ) . setValueConverter ( AttributeConverter . Factory . createHardCoded ( new ModelNode ( "default" ) , true ) , EJB3SubsystemModel . CLIENT_MAPPINGS_CACHE ) . setValueConverter ( AttributeConverter . Factory . createHardCoded ( new ModelNode ( ) . set ( Long . valueOf ( Integer . MAX_VALUE ) ) , true ) , EJB3SubsystemModel . IDLE_TIMEOUT ) . setValueConverter ( AttributeConverter . Factory . createHardCoded ( new ModelNode ( ) . set ( TimeUnit . SECONDS . name ( ) ) , true ) , EJB3SubsystemModel . IDLE_TIMEOUT_UNIT ) ; }
/*
This transformer does the following:
- maps <passivation-store/> to <cluster-passivation-store/>
- sets appropriate defaults for IDLE_TIMEOUT, IDLE_TIMEOUT_UNIT, PASSIVATE_EVENTS_ON_REPLICATE, and CLIENT_MAPPINGS_CACHE
/ * This transformer does the following : - maps <passivation - store / > to <cluster - passivation - store / > - sets appropriate defaults for IDLE_TIMEOUT IDLE_TIMEOUT_UNIT PASSIVATE_EVENTS_ON_REPLICATE and CLIENT_MAPPINGS_CACHE