Examples of UnwrapParameterTemplatedFile


Examples of rocket.beans.rebind.aop.unwrapparameter.UnwrapParameterTemplatedFile

   * parameters from the interceptor chain.
   *
   * @return
   */
  protected CodeBlock getUnwrapParameters() {
    final UnwrapParameterTemplatedFile unwrap = new UnwrapParameterTemplatedFile();

    return new CollectionTemplatedCodeBlock<MethodParameter>() {

      @Override
      public InputStream getInputStream() {
        return unwrap.getInputStream();
      }

      @Override
      protected Object getValue0(final String name) {
        return unwrap.getValue0(name);
      }

      @Override
      protected Collection<MethodParameter> getCollection() {
        return InvokeTargetMethodTemplatedFile.this.getMethod().getParameters();
      }

      @Override
      protected void prepareToWrite(MethodParameter methodParameter) {
        unwrap.setParameter( methodParameter );
      }

      @Override
      protected void writeBetweenElements(SourceWriter writer) {
        writer.print(",");
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.