core/src/main/java/org/commonjava/indy/core/change/StoreContentListener.java
@Measure
    public void onStoreEnablement( @Observes final ArtifactStoreEnablementEvent event )
    {
        Logger logger = LoggerFactory.getLogger( getClass() );
        logger.trace( "Got store-enablement event: {}", event );

        if ( event.isPreprocessing() )
        {
            if ( event.isDisabling() )
            {
                /* For disablement, we remove the merged metadata files by paths via listing mergable files in the target repo's local cache.
                 * We do not cache pom/jar files in affected groups so don't worry about them.
                 */
                processAllPaths( event, mergablePathStrings(), false );
            }
            else
            {
                /* When enabling a repo, we have to clean all (mergable) content from containing groups' cache because
                 * we don't have complete listing of the enabled repo and listing it is very slow. The only option how to keep
                 * the cache consistent is to drop everything from it.
                 */
                processAllPathsExt( event, mergablePathStrings() );
            }
        }
    }
@Measure
    public void onStoreEnablement( @Observes final ArtifactStoreEnablementEvent event )
    {
        Logger logger = LoggerFactory.getLogger( getClass() );
        logger.trace( "Got store-enablement event: {}", event );

        if ( event.isPreprocessing() )
        {
            if ( event.isDisabling() )
            {
                /* For disablement, we remove the merged metadata files by paths via listing mergable files in the target repo's local cache.
                 * We do not cache pom/jar files in affected groups so don't worry about them.
                 */
                processAllPaths( event, mergablePathStrings(), false );
            }
            else
            {
                /* When enabling a repo, we have to clean all (mergable) content from containing groups' cache because
                 * we don't have complete listing of the enabled repo and listing it is very slow. The only option how to keep
                 * the cache consistent is to drop everything from it.
                 */
                processAllPathsExt( event, mergablePathStrings() );
            }
        }
    }
Handles store disable/enablement.