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

org.jboss.weld.metadata.FilterImpl Maven / Gradle / Ivy

package org.jboss.weld.metadata;

import org.jboss.weld.bootstrap.spi.ClassAvailableActivation;
import org.jboss.weld.bootstrap.spi.Filter;
import org.jboss.weld.bootstrap.spi.Metadata;
import org.jboss.weld.bootstrap.spi.SystemPropertyActivation;

import java.util.Collection;


public class FilterImpl implements Filter {

    private final String name;
    private final Collection> systemPropertyActivation;
    private final Collection> classAvailableActivation;

    public FilterImpl(String name, Collection> systemPropertyActivation, Collection> classAvailableActivation) {
        this.name = name;
        this.systemPropertyActivation = systemPropertyActivation;
        this.classAvailableActivation = classAvailableActivation;
    }

    public String getName() {
        return name;
    }

    public Collection> getSystemPropertyActivations() {
        return systemPropertyActivation;
    }

    public Collection> getClassAvailableActivations() {
        return classAvailableActivation;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        if (this.getName() != null) {
            builder.append("name: ").append(getName());
        }
        if (this.classAvailableActivation != null) {
            builder.append(classAvailableActivation);
        }
        if (this.systemPropertyActivation != null) {
            builder.append(systemPropertyActivation);
        }
        return builder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy