All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.jboss.weld.util.ForwardingBeanManager Maven / Gradle / Ivy
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.weld.util;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;
import javax.el.ELResolver;
import javax.el.ExpressionFactory;
import javax.enterprise.context.spi.Context;
import javax.enterprise.context.spi.Contextual;
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.spi.AnnotatedField;
import javax.enterprise.inject.spi.AnnotatedMember;
import javax.enterprise.inject.spi.AnnotatedMethod;
import javax.enterprise.inject.spi.AnnotatedParameter;
import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.BeanAttributes;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.Decorator;
import javax.enterprise.inject.spi.Extension;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.enterprise.inject.spi.InjectionTarget;
import javax.enterprise.inject.spi.InjectionTargetFactory;
import javax.enterprise.inject.spi.InterceptionType;
import javax.enterprise.inject.spi.Interceptor;
import javax.enterprise.inject.spi.ObserverMethod;
import javax.enterprise.inject.spi.ProducerFactory;
/**
* Forwarding implementation of {@link BeanManager}.
*
* @author Martin Kouba
*/
public abstract class ForwardingBeanManager implements BeanManager, Serializable {
private static final long serialVersionUID = -3116833950882475733L;
public abstract BeanManager delegate();
@Override
public Object getReference(Bean> bean, Type beanType, CreationalContext> ctx) {
return delegate().getReference(bean, beanType, ctx);
}
@Override
public Object getInjectableReference(InjectionPoint ij, CreationalContext> ctx) {
return delegate().getInjectableReference(ij, ctx);
}
@Override
public CreationalContext createCreationalContext(Contextual contextual) {
return delegate().createCreationalContext(contextual);
}
@Override
public Set> getBeans(Type beanType, Annotation... qualifiers) {
return delegate().getBeans(beanType, qualifiers);
}
@Override
public Set> getBeans(String name) {
return delegate().getBeans(name);
}
@Override
public Bean> getPassivationCapableBean(String id) {
return delegate().getPassivationCapableBean(id);
}
@Override
public Bean extends X> resolve(Set> beans) {
return delegate().resolve(beans);
}
@Override
public void validate(InjectionPoint injectionPoint) {
delegate().validate(injectionPoint);
}
@Override
public void fireEvent(Object event, Annotation... qualifiers) {
delegate().fireEvent(event, qualifiers);
}
@Override
public Set> resolveObserverMethods(T event, Annotation... qualifiers) {
return delegate().resolveObserverMethods(event, qualifiers);
}
@Override
public List> resolveDecorators(Set types, Annotation... qualifiers) {
return delegate().resolveDecorators(types, qualifiers);
}
@Override
public List> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings) {
return delegate().resolveInterceptors(type, interceptorBindings);
}
@Override
public boolean isScope(Class extends Annotation> annotationType) {
return delegate().isScope(annotationType);
}
@Override
public boolean isNormalScope(Class extends Annotation> annotationType) {
return delegate().isNormalScope(annotationType);
}
@Override
public boolean isPassivatingScope(Class extends Annotation> annotationType) {
return delegate().isPassivatingScope(annotationType);
}
@Override
public boolean isQualifier(Class extends Annotation> annotationType) {
return delegate().isQualifier(annotationType);
}
@Override
public boolean isInterceptorBinding(Class extends Annotation> annotationType) {
return delegate().isInterceptorBinding(annotationType);
}
@Override
public boolean isStereotype(Class extends Annotation> annotationType) {
return delegate().isStereotype(annotationType);
}
@Override
public Set getInterceptorBindingDefinition(Class extends Annotation> bindingType) {
return delegate().getInterceptorBindingDefinition(bindingType);
}
@Override
public Set getStereotypeDefinition(Class extends Annotation> stereotype) {
return delegate().getStereotypeDefinition(stereotype);
}
@Override
public boolean areQualifiersEquivalent(Annotation qualifier1, Annotation qualifier2) {
return delegate().areQualifiersEquivalent(qualifier1, qualifier2);
}
@Override
public boolean areInterceptorBindingsEquivalent(Annotation interceptorBinding1, Annotation interceptorBinding2) {
return delegate().areInterceptorBindingsEquivalent(interceptorBinding1, interceptorBinding2);
}
@Override
public int getQualifierHashCode(Annotation qualifier) {
return delegate().getQualifierHashCode(qualifier);
}
@Override
public int getInterceptorBindingHashCode(Annotation interceptorBinding) {
return delegate().getInterceptorBindingHashCode(interceptorBinding);
}
@Override
public Context getContext(Class extends Annotation> scopeType) {
return delegate().getContext(scopeType);
}
@Override
public ELResolver getELResolver() {
return delegate().getELResolver();
}
@Override
public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory) {
return delegate().wrapExpressionFactory(expressionFactory);
}
@Override
public AnnotatedType createAnnotatedType(Class type) {
return delegate().createAnnotatedType(type);
}
@Override
public InjectionTarget createInjectionTarget(AnnotatedType type) {
return delegate().createInjectionTarget(type);
}
@Override
public BeanAttributes createBeanAttributes(AnnotatedType type) {
return delegate().createBeanAttributes(type);
}
@Override
public BeanAttributes> createBeanAttributes(AnnotatedMember> type) {
return delegate().createBeanAttributes(type);
}
@Override
public Bean createBean(BeanAttributes attributes, Class beanClass, InjectionTargetFactory injectionTargetFactory) {
return delegate().createBean(attributes, beanClass, injectionTargetFactory);
}
@Override
public Bean createBean(BeanAttributes attributes, Class beanClass, ProducerFactory producerFactory) {
return delegate().createBean(attributes, beanClass, producerFactory);
}
@Override
public InjectionPoint createInjectionPoint(AnnotatedField> field) {
return delegate().createInjectionPoint(field);
}
@Override
public InjectionPoint createInjectionPoint(AnnotatedParameter> parameter) {
return delegate().createInjectionPoint(parameter);
}
@Override
public T getExtension(Class extensionClass) {
return delegate().getExtension(extensionClass);
}
@Override
public int hashCode() {
return delegate().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof ForwardingBeanManager) {
ForwardingBeanManager that = (ForwardingBeanManager) obj;
return delegate().equals(that.delegate());
}
return delegate().equals(obj);
}
@Override
public String toString() {
return delegate().toString();
}
@Override
public InjectionTargetFactory getInjectionTargetFactory(AnnotatedType annotatedType) {
return delegate().getInjectionTargetFactory(annotatedType);
}
@Override
public ProducerFactory getProducerFactory(AnnotatedField super X> field, Bean declaringBean) {
return delegate().getProducerFactory(field, declaringBean);
}
@Override
public ProducerFactory getProducerFactory(AnnotatedMethod super X> method, Bean declaringBean) {
return delegate().getProducerFactory(method, declaringBean);
}
}