Package org.jboss.weld.exceptions

Examples of org.jboss.weld.exceptions.IllegalArgumentException


    }

    @Override
    public BeanManagerImpl setCurrent(Class<? extends Annotation> scopeType) {
        if (!isNormalScope(scopeType)) {
            throw new IllegalArgumentException(BeanManagerLogger.LOG.nonNormalScope(scopeType));
        }
        currentActivities.add(new CurrentActivity(getContext(scopeType), this));
        return this;
    }
View Full Code Here


    private <T extends InjectionPoint> T validateInjectionPoint(T injectionPoint) {
        try {
            services.get(Validator.class).validateInjectionPointForDefinitionErrors(injectionPoint, null, this);
        } catch (DefinitionException e) {
            throw new IllegalArgumentException(e);
        }
        return injectionPoint;
    }
View Full Code Here

    private WeldInjectionTarget<T> createInjectionTarget(Bean<T> bean, boolean interceptor) {
        try {
            return validate(createInjectionTarget(type, bean, interceptor));
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

    private BasicInjectionTarget<T> prepareInjectionTarget(BasicInjectionTarget<T> injectionTarget) {
        try {
            postProcess(initialize(validate(injectionTarget)));
            return injectionTarget;
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

        try {
            Producer<T> producer = createProducer(getDeclaringBean(), bean, null);
            getManager().getServices().get(InjectionTargetService.class).validateProducer(producer);
            return producer;
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

        }
    }

    public static void checkArgument(boolean condition, Object argument) {
        if (!condition) {
            throw new IllegalArgumentException("Illegal argument " + ((argument == null) ? "null" : argument.toString()));
        }
    }
View Full Code Here

        }
    }

    public static void checkArgument(boolean condition, String message) {
        if (!condition) {
            throw new IllegalArgumentException(message);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.weld.exceptions.IllegalArgumentException

Copyright © 2018 www.massapicom. 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.