package de.nbscloud.bookmarks;

import de.nbscloud.webcontainer.registry.App;
import de.nbscloud.webcontainer.registry.AppRegistry;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BookmarksApp implements App, InitializingBean {
    @Autowired
    private AppRegistry appRegistry;

    @Override
    public String getId() {
        return "bookmarks";
    }

    @Override
    public String getIcon() {
        return null;
    }

    @Override
    public String getStartPath() {
        return this.getId();
    }

    @Override
    public int getIndex() {
        return 30;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        this.appRegistry.registerApp(this);
    }
}
