Examples of create()


Examples of org.apache.tapestry.vlib.ejb.IOperationsHome.create()

            {
                try
                {
                    IOperationsHome home = global.getOperationsHome();

                    _operations = home.create();

                    break;
                }
                catch (CreateException ex)
                {

Examples of org.apache.tapestry.vlib.ejb.IPersonHome.create()

        attributes.put("firstName", firstName.trim());
        attributes.put("email", email.trim());
        attributes.put("password", password.trim());
        attributes.put("lastAccess", new Timestamp(System.currentTimeMillis()));

        IPerson person = home.create(attributes);

        Integer personId = (Integer) person.getPrimaryKey();

        try
        {

Examples of org.apache.tapestry.vlib.ejb.IPublisherHome.create()

        {
            // Ignore, means that no publisher with the given name already exists.
        }

        if (publisher == null)
            publisher = publisherHome.create(publisherName);

        attributes.put("publisherId", publisher.getPrimaryKey());

        return addBook(attributes);
    }

Examples of org.apache.tapestry5.annotations.ApplicationState.create()

        for (TransformField field : transformation.matchFieldsWithAnnotation(ApplicationState.class))
        {
            ApplicationState annotation = field.getAnnotation(ApplicationState.class);

            fields.put(field, annotation.create());

            field.claim(annotation);
        }

        for (TransformField field : transformation.matchFieldsWithAnnotation(SessionState.class))

Examples of org.apache.tapestry5.annotations.SessionState.create()

    {
        for (PlasticField field : plasticClass.getFieldsWithAnnotation(SessionState.class))
        {
            SessionState annotation = field.getAnnotation(SessionState.class);

            transform(plasticClass, field, annotation.create());

            field.claim(annotation);
        }
    }

Examples of org.apache.tapestry5.hibernate.HibernateSessionSource.create()

                                                   new ClassNameLocatorImpl(new ClasspathURLConverterImpl())));

        replay();
        HibernateSessionSource source = new HibernateSessionSourceImpl(log, filters);

        Session session = source.create();
        assertNotNull(session);

        // make sure it found the entity in the package
        ClassMetadata meta = session.getSessionFactory().getClassMetadata(User.class);
        assertEquals(meta.getEntityName(), "org.example.app0.entities.User");

Examples of org.apache.tapestry5.plastic.PlasticManager.PlasticManagerBuilder.create()

        if (!productionMode)
        {
            builder.enable(TransformationOption.FIELD_WRITEBEHIND);
        }

        manager = builder.create();

        manager.addPlasticClassListener(this);

        classFactory = new ClassFactoryImpl(manager.getClassLoader(), logger);

Examples of org.apache.tapestry5.services.BeanModelSource.create()

        train_getMessages(resources, messages);
        stub_contains(messages, false);

        replay();

        model = source.create(Datum.class, false, resources);

        verify();
    }

    @AfterClass

Examples of org.apache.tomcat.websocket.TransformationFactory.create()

            preferences.add(extension.getParameters());
        }

        for (Map.Entry<String,List<List<Extension.Parameter>>> entry :
            extensionPreferences.entrySet()) {
            Transformation transformation = factory.create(entry.getKey(), entry.getValue());
            if (transformation != null) {
                result.add(transformation);
            }
        }
        return result;

Examples of org.apache.tools.ant.AntTypeDefinition.create()

        instance.setProject(project);
        instance.setReference("foo");
       
        MockControl atdCtrl = MockClassControl.createControl(AntTypeDefinition.class);
        AntTypeDefinition typeDef = (AntTypeDefinition)atdCtrl.getMock();
        typeDef.create(project);
        ServiceInstance helperInstance = new ServiceInstance();
        helperInstance.setServiceDef(service);
        atdCtrl.setReturnValue(helperInstance);
        cHelper.getDefinition("foo");
        chCtrl.setReturnValue(typeDef);
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.