All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.framework.api.bean.LocatedBeanPack Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
package net.n2oapp.framework.api.bean;

import java.util.List;

/**
 * @author operehod
 * @since 16.06.2015
 */
public class LocatedBeanPack implements LocatedBean {

    private Class beanClass;

    public Class getBeanClass() {
        return beanClass;
    }

    public LocatedBeanPack(Class beanClass) {
        this.beanClass = beanClass;
    }

    public LocatedBeanPack(Class beanClass, List pack) {
        this.beanClass = beanClass;
        this.pack = pack;
    }

    private List pack;

    public List getPack() {
        return pack;
    }

    public void setPack(List pack) {
        this.pack = pack;
    }

    //логика для задания положения модуля среди других
    private LocatedBean[] prevBeans;
    private LocatedBean[] nextBeans;
    private boolean beforeAll;
    private boolean afterAll;

    @Override
    public LocatedBean[] getNextBeans() {
        return nextBeans;
    }

    @Override
    public LocatedBean[] getPrevBeans() {
        return prevBeans;
    }

    @Override
    public boolean isBeforeAll() {
        return beforeAll;
    }

    @Override
    public boolean isAfterAll() {
        return afterAll;
    }


    public void setBeforeAll(boolean beforeAll) {
        this.beforeAll = beforeAll;
    }

    public void setAfterAll(boolean afterAll) {
        this.afterAll = afterAll;
    }

    public final void setBefore(LocatedBean... n2oModule) {
        this.nextBeans = n2oModule;
    }

    public final void setAfter(LocatedBean... n2oModule) {
        this.prevBeans = n2oModule;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy