001package systems.dmx.core.impl;
002
003import java.util.List;
004
005
006
007class RestResourcesPublication {
008
009    // ---------------------------------------------------------------------------------------------- Instance Variables
010
011    private List<Object> singletons;
012    private List<Class<?>> classes;
013
014    private WebPublishingService wpService;
015
016    // ---------------------------------------------------------------------------------------------------- Constructors
017
018    RestResourcesPublication(List<Object> singletons, List<Class<?>> classes, WebPublishingService wpService) {
019        this.singletons = singletons;
020        this.classes = classes;
021        this.wpService = wpService;
022    }
023
024    // -------------------------------------------------------------------------------------------------- Public Methods
025
026    void unpublish() {
027        wpService.unpublishRestResources(singletons, classes);
028    }
029}