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;
import org.jboss.weld.bootstrap.spi.TrimmableBeansXml;
public class BeansXmlImpl implements BeansXml, TrimmableBeansXml {
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;
private final boolean isTrimmed;
public BeansXmlImpl(List> enabledAlternatives, List> enabledAlternativeStereotypes,
List> enabledDecorators, List> enabledInterceptors, Scanning scanning, URL url, BeanDiscoveryMode discoveryMode,
String version, boolean isTrimmed) {
this.enabledAlternatives = enabledAlternatives;
this.enabledAlternativeStereotypes = enabledAlternativeStereotypes;
this.enabledDecorators = enabledDecorators;
this.enabledInterceptors = enabledInterceptors;
this.scanning = scanning;
this.url = url;
this.discoveryMode = discoveryMode;
this.version = version;
this.isTrimmed = isTrimmed;
}
@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;
}
@Override
public boolean isTrimmed() {
return isTrimmed;
}
}