Examples of useInstantiators()


Examples of org.jboss.weld.util.reflection.instantiation.InstantiatorFactory.useInstantiators()

        Constructor<?> constructor;
        try {
            constructor = AccessController.doPrivileged(GetDeclaredConstructorAction.of(clazz));
        } catch (PrivilegedActionException e) {
            InstantiatorFactory factory = services.get(InstantiatorFactory.class);
            if (factory == null || !(factory.useInstantiators())) {
                return ValidatorLogger.LOG.notProxyableNoConstructor(clazz, getDeclaringBeanInfo(declaringBean));
            } else {
                return null;
            }
        }
View Full Code Here

Examples of org.jboss.weld.util.reflection.instantiation.InstantiatorFactory.useInstantiators()

        Collections.sort(list, ClassHierarchyComparator.INSTANCE);
        additionalInterfaces.clear();
        additionalInterfaces.addAll(list);

        InstantiatorFactory factory = Container.instance(contextId).services().get(InstantiatorFactory.class);
        if (factory != null && factory.useInstantiators() && isCreatingProxy()) {
            this.instantiatorFactory = factory;
        } else {
            this.instantiatorFactory = null;
        }
    }
View Full Code Here

Examples of org.jboss.weld.util.reflection.instantiation.InstantiatorFactory.useInstantiators()

        }
        if (constructor == null) {
            return ValidatorLogger.LOG.notProxyableNoConstructor(clazz, getDeclaringBeanInfo(declaringBean));
        } else if (Modifier.isPrivate(constructor.getModifiers())) {
            InstantiatorFactory factory = services.get(InstantiatorFactory.class);
            if (factory == null || !(factory.useInstantiators())) {
                return new UnproxyableResolutionException(ValidatorLogger.LOG.notProxyablePrivateConstructor(clazz, constructor, getDeclaringBeanInfo(declaringBean)));
            } else {
                return null;
            }
        } else if (Reflections.isTypeOrAnyMethodFinal(clazz)) {
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.