Examples of wrap()


Examples of freemarker.template.DefaultObjectWrapper.wrap()

   
    @Test
    public void legacyWayOfConfiguring() throws TemplateModelException {
        DefaultObjectWrapper ow = new DefaultObjectWrapperOverride();
        ow.setExposeFields(true);
        checkIfProperlyWrapped(ow.wrap(new C()));
       
        ow = new DefaultObjectWrapperOverrideExt();
        ow.setExposeFields(true);
        checkIfProperlyWrapped(ow.wrap(new C()));
    }
View Full Code Here

Examples of freemarker.template.ObjectWrapper.wrap()

        Environment env = Environment.getCurrentEnvironment();
        TemplateModel nullModel = null;
        if(env != null) {
            ObjectWrapper wrapper = env.getObjectWrapper();
            if(wrapper != null) {
                nullModel = wrapper.wrap(null);
            }
        }
        return unwrap(model, nullModel, permissive);
    }
View Full Code Here

Examples of gnu.javax.crypto.kwa.IKeyWrappingAlgorithm.wrap()

        String msg;
        byte[] km = new byte[24];
        msg = "Input length for wrapping MUST be 16 or 24 bytes";
        try
          {
            kwa.wrap(km, 0, 15);
            harness.fail(msg);
          }
        catch (IllegalArgumentException e)
          {
            harness.check(true, msg);
View Full Code Here

Examples of io.conducive.client.ui.widgets.html.ListItem.wrap()

        }
        listItem.getElement().setAttribute("data-button", "OK");
        if (position != null) {
            listItem.getElement().setAttribute("data-options", "tipLocation: " + (position == Position.TOP ? "top" : "bottom"));
        }
        listItem.wrap(h4().text(heading), div().html(message));
        add(listItem);
        if (items.size() > 0) {
            items.getLast().getElement().setAttribute("data-button", "Next");
        }
        items.add(listItem);
View Full Code Here

Examples of io.conducive.client.ui.widgets.html.Span.wrap()

        // it's unlikely that this will be the case, since most of the time a tooltip will be configured while building
        if (getElement().hasParentElement()) {
            getElement().getParentElement().replaceChild(outer.getElement(), getElement());
        }
        outer.wrap(this);
        // we have to return outer
        return outer;
    }

    /**
 
View Full Code Here

Examples of io.undertow.servlet.api.SessionConfigWrapper.wrap()

                }
            }
        }
        SessionConfigWrapper wrapper = deploymentInfo.getSessionConfigWrapper();
        if (wrapper != null) {
            sessionConfig = wrapper.wrap(sessionConfig, deployment);
        }
        this.sessionConfig = sessionConfig;
    }

    @Override
View Full Code Here

Examples of javax.crypto.Cipher.wrap()

    try {
      // Should internally generate an IV
      // todo - allow user to set an IV
      c.init(Cipher.WRAP_MODE, _key);
      encryptedBytes = c.wrap(key);
    } catch (InvalidKeyException ike) {
      throw new XMLEncryptionException("empty", ike);
    } catch (IllegalBlockSizeException ibse) {
      throw new XMLEncryptionException("empty", ibse);
    }
View Full Code Here

Examples of javax.net.ssl.SSLEngine.wrap()

        int port = 8080;
        ByteBuffer bbN = null;
        ByteBuffer bb = ByteBuffer.allocate(10);
        SSLEngine e = new mySSLEngine(host, port);

        e.wrap(bbN, bb);
        e.wrap(bb, bbN);

        ByteBuffer roBb = bb.asReadOnlyBuffer();
        assertTrue("Not read only byte buffer", roBb.isReadOnly());
        e.wrap(bb, roBb);
View Full Code Here

Examples of net.jini.security.SecurityContext.wrap()

    final Thread t = (Thread) AccessController.doPrivileged(
        new NewThreadAction(new Runnable() {
      public void run() {
          SecurityContext securityContext =
        target.getSecurityContext();
          AccessController.doPrivileged(securityContext.wrap(
        new PrivilegedAction() {
            public Object run() {
          obj.unreferenced();
          return null;
            }
View Full Code Here

Examples of net.miginfocom.layout.CC.wrap()

       
        name = new Text(parent, SWT.SHADOW_IN | SWT.BORDER);
        CC cc = new CC();
        cc.spanX(3);
        cc.growX();
        cc.wrap();
        name.setLayoutData( cc );
        name.addKeyListener(this);
    }
    /* Example of form layout for the same view */
    private void createControlFormLayout( Composite parent ) {
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.