Examples of rethrow()


Examples of com.google.common.io.Closer.rethrow()

        throw new IOException("Couldn't find resource " + path);
      in = closer.register(resourceProvider.getInputStream(path));
      return peek(in);
    } catch (Throwable e)
    {
      throw closer.rethrow(e, InvalidVersionException.class);
    } finally
    {
      closer.close();
    }
  }
View Full Code Here

Examples of com.google.common.io.Closer.rethrow()

        MainWindow.this.toolWindowManager.getPersistenceDelegate().merge(loadSource, MergePolicy.RESET);
        LOGGER.info("Successfull loaded workspace settings.");
        success = true;
      } catch (Throwable ex) {
        success = false;
        closer.rethrow(ex);
      } finally {
        closer.close();
      }
    } catch (IOException ex) {
      LOGGER.error("Exeption thrown while loading workspace settings.", ex);
View Full Code Here

Examples of org.apache.tapestry5.TrackableComponentEventCallback.rethrow()

        environment.pop(TrackableComponentEventCallback.class);
        environment.pop(ComponentEventResultProcessor.class);

        if (callback.isAborted())
        {
            callback.rethrow();
            return;
        }

        // If we get this far without generating a response, the default behavior is to
        // generate a redirect back to the active page; we can let the ComponentEventResultProcessor handle that.
View Full Code Here

Examples of org.apache.tapestry5.TrackableComponentEventCallback.rethrow()

        environment.pop(TrackableComponentEventCallback.class);
        environment.pop(ComponentEventResultProcessor.class);

        if (callback.isAborted())
        {
            callback.rethrow();
            return;
        }

        if (!response.isCommitted())
            generator.generateResponse(activePage);
View Full Code Here

Examples of org.apache.tapestry5.TrackableComponentEventCallback.rethrow()

        pageResources.triggerContextEvent(EventConstants.ACTIVATE, activationContext, callback);

        if (callback.isAborted())
        {
            callback.rethrow();
            return true;
        }

        return false;
    }
View Full Code Here

Examples of org.apache.tapestry5.TrackableComponentEventCallback.rethrow()

        environment.pop(TrackableComponentEventCallback.class);
        environment.pop(ComponentEventResultProcessor.class);

        if (callback.isAborted())
        {
            callback.rethrow();
            return;
        }

        // If we get this far without generating a response, the default behavior is to
        // generate a redirect back to the active page; we can let the ComponentEventResultProcessor handle that.
View Full Code Here

Examples of org.apache.tapestry5.plastic.MethodInvocationResult.rethrow()

    {
        event.setMethodDescription(identifier);

        MethodInvocationResult result = handle.invoke(instance, constructParameters(event));

        result.rethrow();

        event.storeResult(result.getReturnValue());
    }

    public String getComponentId()
View Full Code Here

Examples of org.apache.tapestry5.services.MethodInvocationResult.rethrow()

            logger.debug(String.format("%s invoking default method %s", invocation.getComponentResources()
                    .getCompleteId(), defaultMethodAccess));

            MethodInvocationResult result = defaultMethodAccess.invoke(invocation.getInstance());

            result.rethrow();

            getConduit(invocation, conduitAccess).setDefault(result.getReturnValue());

            invocation.proceed();
        }
View Full Code Here

Examples of org.apache.tapestry5.services.MethodInvocationResult.rethrow()

            {
                invocation.proceed();

                MethodInvocationResult result = access.invoke(invocation.getInstance());

                result.rethrow();
            }
        };
    }

    private void validateMethodSignature(TransformMethod method)
View Full Code Here

Examples of org.apache.tapestry5.services.MethodInvocationResult.rethrow()

            // As currently implemented, MethodAccess objects ignore excess parameters.

            MethodInvocationResult result = access.invoke(instance, writer);

            result.rethrow();

            event.storeResult(result.getReturnValue());
        }

    }
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.