Examples of IBeanInheritedMetaData


Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                component.addQualifier(annotation);
            }
        }
       
        // Adding inherited qualifiers
        IBeanInheritedMetaData inheritedMetaData = null;
       
        if(component instanceof InjectionTargetBean)
        {
            inheritedMetaData = ((InjectionTargetBean<?>) component).getInheritedMetaData();
        }
       
        if (inheritedMetaData != null)
        {
            Set<Annotation> inheritedTypes = inheritedMetaData.getInheritedQualifiers();
            for (Annotation inherited : inheritedTypes)
            {
                Set<Annotation> qualifiers = component.getQualifiers();
                boolean found = false;
                for (Annotation existQualifier : qualifiers)
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                component.addStereoType(stereo);
            }
        }
       
        // Adding inherited qualifiers
        IBeanInheritedMetaData inheritedMetaData = null;
       
        if(component instanceof InjectionTargetBean)
        {
            inheritedMetaData = ((InjectionTargetBean<?>) component).getInheritedMetaData();
        }
       
        if (inheritedMetaData != null)
        {
            Set<Annotation> inheritedTypes = inheritedMetaData.getInheritedStereoTypes();       
            for (Annotation inherited : inheritedTypes)
            {
                Set<Class<? extends Annotation>> qualifiers = component.getStereotypes();
                boolean found = false;
                for (Class<? extends Annotation> existQualifier : qualifiers)
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

    }

    public void defineDefaultScopeType(OwbBean<?> component, String exceptionMessage, boolean allowLazyInit)
    {
        // Frist look for inherited scope
        IBeanInheritedMetaData metaData = null;
        if(component instanceof InjectionTargetBean)
        {
            metaData = ((InjectionTargetBean<?>)component).getInheritedMetaData();
        }
        boolean found = false;
        if (metaData != null)
        {
            Annotation inheritedScope = metaData.getInheritedScopeType();
            if (inheritedScope != null)
            {
                found = true;
                component.setImplScopeType(inheritedScope);
            }
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

        // Look for inherited binding types, keeping in mind that
        // IBeanInheritedMetaData knows nothing of the transitive
        // relationships of Interceptor Bindings or Stereotypes. We must resolve
        // these here.
        IBeanInheritedMetaData metadata = component.getInheritedMetaData();
        if (metadata != null)
        {
            Set<Annotation> inheritedBindingTypes = metadata.getInheritedInterceptorBindings();
            if (!inheritedBindingTypes.isEmpty())
            {
                Annotation[] inheritedAnns = new Annotation[inheritedBindingTypes.size()];
                inheritedAnns = inheritedBindingTypes.toArray(inheritedAnns);
                anns = annotationManager.getInterceptorBindingMetaAnnotations(inheritedAnns);
                bindingTypeSet.addAll(Arrays.asList(anns));
            }

            // Retrieve inherited stereotypes, check for meta-annotations, and
            // find the ultimate set of bindings
            Set<Annotation> inheritedStereotypes = metadata.getInheritedStereoTypes();

            if (!inheritedStereotypes.isEmpty())
            {
                // We need AnnotationUtil to resolve the transitive relationship
                // of stereotypes we've found
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

    }

    public static void defineDefaultScopeType(Component<?> component, String exceptionMessage)
    {
        // Frist look for inherited scope
        IBeanInheritedMetaData metaData = component.getInheritedMetaData();
        boolean found = false;
        if (metaData != null)
        {
            Annotation inheritedScope = metaData.getInheritedScopeType();
            if (inheritedScope != null)
            {
                found = true;
                component.setImplScopeType(inheritedScope);
            }
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                    }
                }
            }
           
            //Look for inherited binding types
            IBeanInheritedMetaData metadata = component.getInheritedMetaData();
            if(metadata != null)
            {
                Set<Annotation> inheritedBindingTypes = metadata.getInheritedInterceptorBindingTypes();
                if(!inheritedBindingTypes.isEmpty())
                {
                    bindingTypeSet.addAll(inheritedBindingTypes);  
                }
            }
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

        }

        if (!found)
        {
            // Look inherited meta-data deployment type
            IBeanInheritedMetaData metadata = component.getInheritedMetaData();
            if (metadata != null)
            {
                if (metadata.getInheritedDeploymentType() != null)
                {
                    component.setType(metadata.getInheritedDeploymentType());
                    found = true;
                }
            }
        }
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                component.addBindingType(annotation);
            }
        }
       
        // Adding inherited binding types
        IBeanInheritedMetaData inheritedMetaData = component.getInheritedMetaData();
        if (inheritedMetaData != null)
        {
            Set<Annotation> inheritedTypes = inheritedMetaData.getInheritedBindingTypes();
            for (Annotation inherited : inheritedTypes)
            {
                Set<Annotation> bindings = component.getBindings();
                boolean found = false;
                for (Annotation existBinding : bindings)
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                component.addStereoType(stereo);
            }
        }
       
        // Adding inherited binding types
        IBeanInheritedMetaData inheritedMetaData = component.getInheritedMetaData();
        if (inheritedMetaData != null)
        {
            Set<Annotation> inheritedTypes = inheritedMetaData.getInheritedStereoTypes();       
            for (Annotation inherited : inheritedTypes)
            {
                Set<Annotation> bindings = component.getStereotypes();
                boolean found = false;
                for (Annotation existBinding : bindings)
View Full Code Here

Examples of org.apache.webbeans.config.inheritance.IBeanInheritedMetaData

                component.addQualifier(annotation);
            }
        }
       
        // Adding inherited qualifiers
        IBeanInheritedMetaData inheritedMetaData = null;
       
        if(component instanceof InjectionTargetBean)
        {
            inheritedMetaData = ((InjectionTargetBean<?>) component).getInheritedMetaData();
        }
       
        if (inheritedMetaData != null)
        {
            Set<Annotation> inheritedTypes = inheritedMetaData.getInheritedQualifiers();
            for (Annotation inherited : inheritedTypes)
            {
                Set<Annotation> qualifiers = component.getQualifiers();
                boolean found = false;
                for (Annotation existQualifier : qualifiers)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.