Package javax.context

Examples of javax.context.ContextNotActiveException


       

        // Still null
        if (contexts.isEmpty())
        {
            throw new ContextNotActiveException("WebBeans context with scope type annotation @" + scopType.getSimpleName() + " is not exist within current thread");
        }
       
        else if(contexts.size() > 1)
        {
            throw new IllegalStateException("More than one context exist with scope type annotation @" + scopType.getSimpleName());
View Full Code Here


       

        // Still null
        if (contexts.isEmpty())
        {
            throw new ContextNotActiveException("WebBeans context with scope type annotation @" + scopeType.getSimpleName() + " does not exist within current thread");
        }
       
        else if(contexts.size() > 1)
        {
            throw new IllegalStateException("More than one active context exists with scope type annotation @" + scopeType.getSimpleName());
View Full Code Here

    public <T> T get(Contextual<T> component, CreationalContext<T> creationalContext)
    {
        if (!active)
        {
            throw new ContextNotActiveException("WebBeans context with scope type annotation @" + getScopeType().getName() + " is not active with respect to the current thread");
        }

        return getInstance(component, creationalContext);
    }
View Full Code Here

TOP

Related Classes of javax.context.ContextNotActiveException

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.