Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2008, 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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.jboss.weld.bean.builtin;
The built-in bean for facade objects. Since special rules are applied for resolving facade beans, we need to resolve decorators per bean instance based on the required bean type.

Jozef Hartinger
public abstract class AbstractFacadeBean<T> extends AbstractDecorableBuiltInBean<T> {
    private Class<T> proxyClass;
    protected AbstractFacadeBean(BeanManagerImpl managerClass<T> type) {
    public void destroy(T instanceCreationalContext<T> creationalContext) {
    protected Class<T> getProxyClass() {
        return ;
    public void initializeAfterBeanDiscovery() {
        this. = new ProxyFactory<T>(getBeanManager().getContextId(), getType(), getTypes(), this).getProxyClass();
    protected List<Decorator<?>> getDecorators(InjectionPoint ip) {
        return .resolveDecorators(Collections.singleton(ip.getType()), getQualifiers());
        InjectionPoint ip = super.getInjectionPoint(cip);
        if (ip == null) {
            ip = new DynamicLookupInjectionPoint(.getDefaultType(), Collections.<Annotation>emptySet());
        return ip;
    protected abstract Type getDefaultType();
New to GrepCode? Check out our FAQ X