Package org.glassfish.hk2.api

Examples of org.glassfish.hk2.api.MultiException


            }
           
            return retVal;
        } catch (Throwable th) {
            if (th instanceof MultiException) {
                MultiException me = (MultiException) th;

                me.addError(new IllegalStateException("Unable to perform operation: " + failureLocation + " on " + implClass.getName()));

                throw me;
            }

            MultiException me = new MultiException(th);
            me.addError(new IllegalStateException("Unable to perform operation: " + failureLocation + " on " + implClass.getName()));

            throw me;
        }
    }
View Full Code Here


        } catch (Throwable th) {
            if (th instanceof MultiException) {
                throw (MultiException) th;
            }
           
            throw new MultiException(th);
        }

    }
View Full Code Here

       
        context = locator.resolveContext(descriptor.getScopeAnnotation());
        service = context.findOrCreate(descriptor, root);
       
        if (service == null) {
            throw new MultiException(new IllegalStateException("Proxiable context " +
                    context + " findOrCreate returned a null for descriptor " + descriptor +
                    " and handle " + root));
        }
       
        if (method.getName().equals(PROXY_MORE_METHOD_NAME)) {
View Full Code Here

        }
        catch (IOException ioe) {
            throw ioe;
        }
        catch (Throwable th) {
            throw new MultiException(th);
        }
       
        Collector collector = new Collector();

        DynamicConfiguration config = dcs.createDynamicConfiguration();
View Full Code Here

    private ServiceHandle<Factory<T>> getFactoryHandle() {
        try {
            return (ServiceHandle<Factory<T>>) locator.getServiceHandle(factoryDescriptor);
        }
        catch (Throwable th) {
            throw new MultiException(th);
        }
    }
View Full Code Here

        catch (Throwable th) {
            if (th instanceof MultiException) {
                throw (MultiException) th;
            }
           
            throw new MultiException(th);
        }
    }
View Full Code Here

           
            while (creatingDescriptors.containsKey(activeDescriptor)) {
                long creatingThreadId = creatingDescriptors.get(activeDescriptor);
               
                if (creatingThreadId == Thread.currentThread().getId()) {
                    throw new MultiException(new IllegalStateException(
                            "A circular dependency involving Singleton service " + activeDescriptor.getImplementation() +
                            " was found.  Full descriptor is " + activeDescriptor));
                   
                }
                try {
View Full Code Here

        try {
            return loader.loadClass(loadMe);
        } catch (Throwable th) {
            if (th instanceof MultiException) {
                MultiException me = (MultiException) th;

                for (Throwable th2 : me.getErrors()) {
                    collector.addThrowable(th2);
                }
            } else {
                collector.addThrowable(th);
            }
View Full Code Here

        }

        try {
            return loader.loadClass(implementation);
        } catch (Throwable th) {
            throw new MultiException(th);
        }
    }
View Full Code Here

        Type factoryProvidedType = getFactoryProductionType(factoryClass);
       
        Class<?> retVal = ReflectionHelper.getRawClass(factoryProvidedType);
        if (retVal != null) return retVal;
       
        throw new MultiException(new AssertionError("Could not find true produced type of factory " + factoryClass.getName()));
    }
View Full Code Here

TOP

Related Classes of org.glassfish.hk2.api.MultiException

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.