@ Override protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { PathAddress address = context . getCurrentAddress ( ) ; // re-install the cache container services CacheContainerAddHandler . installRuntimeServices ( context , operation , model ) ; // re-install any existing cache services for ( CacheType type : CacheType . values ( ) ) { CacheAdd addHandler = type . getAddHandler ( ) ; if ( model . hasDefined ( type . pathElement ( ) . getKey ( ) ) ) { for ( Property property : model . get ( type . pathElement ( ) . getKey ( ) ) . asPropertyList ( ) ) { ModelNode addOperation = Util . createAddOperation ( address . append ( type . pathElement ( property . getName ( ) ) ) ) ; addHandler . installRuntimeServices ( context , addOperation , model , property . getValue ( ) ) ; } } } }
Method to re - install any services associated with existing local caches .