org.jboss.weld.metadata.BeansXmlImpl Maven / Gradle / Ivy
package org.jboss.weld.metadata;
import java.net.URL;
import java.util.List;
import org.jboss.weld.bootstrap.spi.BeanDiscoveryMode;
import org.jboss.weld.bootstrap.spi.BeansXml;
import org.jboss.weld.bootstrap.spi.Metadata;
import org.jboss.weld.bootstrap.spi.Scanning;
public class BeansXmlImpl implements BeansXml {
private final List> enabledAlternatives;
private final List> enabledAlternativeStereotypes;
private final List> enabledDecorators;
private final List> enabledInterceptors;
private final Scanning scanning;
private final URL url;
private final BeanDiscoveryMode discoveryMode;
private final String version;
public BeansXmlImpl(List> enabledAlternatives, List> enabledAlternativeStereotypes, List> enabledDecorators, List> enabledInterceptors, Scanning scanning, URL url, BeanDiscoveryMode discoveryMode, String version) {
this.enabledAlternatives = enabledAlternatives;
this.enabledAlternativeStereotypes = enabledAlternativeStereotypes;
this.enabledDecorators = enabledDecorators;
this.enabledInterceptors = enabledInterceptors;
this.scanning = scanning;
this.url = url;
this.discoveryMode = discoveryMode;
this.version = version;
}
@Override
public List> getEnabledAlternativeClasses() {
return enabledAlternatives;
}
@Override
public List> getEnabledAlternativeStereotypes() {
return enabledAlternativeStereotypes;
}
@Override
public List> getEnabledDecorators() {
return enabledDecorators;
}
@Override
public List> getEnabledInterceptors() {
return enabledInterceptors;
}
@Override
public Scanning getScanning() {
return scanning;
}
@Override
public URL getUrl() {
return url;
}
@Override
public BeanDiscoveryMode getBeanDiscoveryMode() {
return discoveryMode;
}
@Override
public String getVersion() {
return version;
}
}