Package com.volantis.mcs.model.descriptor

Examples of com.volantis.mcs.model.descriptor.ModelDescriptor


        person.setAddress(address);
        return person;
    }

    protected Proxy createProxy(Object object) {
        ModelDescriptor descriptor = Descriptors.MODEL_DESCRIPTOR;
        InteractionFactory factory = InteractionFactory.getDefaultInstance();
        InteractionModel interactionModel =
                factory.createInteractionModel(descriptor);

        Proxy proxy = interactionModel.createProxyForModelObject(object);
View Full Code Here


     * Test that adding a couple of proxies with no model objects and then
     * getting a model object for one does not update the other.
     */
    public void testGettingModelObjectForProxyDoesNotAffectOthers() {

        ModelDescriptor modelDescriptor = Descriptors.MODEL_DESCRIPTOR;
        BeanClassDescriptor contactsDescriptor = (BeanClassDescriptor)
                modelDescriptor.getTypeDescriptorStrict(Contacts.class);

        InteractionFactory factory = InteractionFactory.getDefaultInstance();
        InteractionModel model = factory.createInteractionModel(modelDescriptor);

        // Contacts
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.descriptor.ModelDescriptor

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.