Gvnix slides

34

Transcript of Gvnix slides

Page 1: Gvnix slides
Page 2: Gvnix slides

gvNIXDesarrollo rápido de aplicaciones

Java

Enrique RuizDirector I+D+i DISID TECHNOLOGIES S.L.

Page 3: Gvnix slides

TecnologíaEvolución

ProductividadOpciones

Page 4: Gvnix slides

¿Java?Comunidad

Documentación

PopularVersátil

Proyecto

Page 5: Gvnix slides

gvNIX = Productividad +Homogeneidad

Page 6: Gvnix slides

Roo, Making gvNIX Work

DistribuciónConvenciónNo runtime

Generación de código

Page 7: Gvnix slides

El intérprete de comandos    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> 

Page 8: Gvnix slides

Comando help    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> help* */ ­ End of block comment* /* ­ Start of block comment* // ­ Inline comment markers (start of line only)* ; ­ Inline comment markers (start of line only)* backup ­ Backup your project to a zip file* cit security setup ­ Configura la autenticación de usuarios con el mecanismo de la Consellería de Infraestructuras y Transportes....

Page 9: Gvnix slides

Comando hint    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> hintWelcome to Roo! We hope you enjoy your stay!Before you can use many features of Roo, you need to start a new project.To do this, type 'project' (without the quotes) and then hit TAB.Enter a ­­topLevelPackage like 'com.mycompany.projectname' (no quotes)....

Page 10: Gvnix slides

TAB    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> s<TAB>script                security setup       selenium testservice class         service define ws    service export operationservice export ws     service import ws    service list operationservice operation     solr add             solr allsolr setup            system properties...

Page 11: Gvnix slides

El proyecto

Page 12: Gvnix slides

Comando project    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> project ­­topLevelPackage com.proyecto Created /tmp/proyecto/pom.xmlCreated SRC_MAIN_JAVACreated SRC_MAIN_RESOURCESCreated SRC_TEST_JAVACreated SRC_TEST_RESOURCESCreated SRC_MAIN_WEBAPPCreated SRC_MAIN_RESOURCES/META­INF/springCreated SRC_MAIN_RESOURCES/META­INF/spring/applicationContext.xmlCreated SRC_MAIN_RESOURCES/log4j.propertiescom.proyecto roo> 

Page 13: Gvnix slides

Comando persistence    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

com.proyecto roo> persistence setup ­­provider HIBERNATE ­­database HYPERSONIC_IN_MEMORY 

Created SRC_MAIN_RESOURCES/META­INF/persistence.xmlCreated SRC_MAIN_RESOURCES/META­INF/spring/database.propertiesManaged SRC_MAIN_RESOURCES/META­INF/spring/applicationContext.xml... com.proyecto roo>

Page 14: Gvnix slides

    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

com.proyecto roo> entity ­­class ~.domain.Actividad 

Created SRC_MAIN_JAVA/com/proyecto/domainCreated SRC_MAIN_JAVA/com/proyecto/domain/Actividad.javaCreated SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_Entity.ajCreated SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_ToString.ajCreated SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_Configurable.aj... ~.domain.Actividad roo>

Page 15: Gvnix slides

    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

~.domain.Actividad roo> field string ­­fieldName titulo ­­notNull ­­sizeMin 4 

Managed SRC_MAIN_JAVA/com/proyecto/domain/Actividad.javaManaged SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_JavaBean.ajManaged SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_ToString.aj... ~.domain.Actividad roo>

Page 16: Gvnix slides

Comando finder    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

~.domain.Actividad roo> finder add ­­finderName findActividadsByInicio

Managed SRC_MAIN_JAVA/com/proyecto/domain/Actividad.javaCreated SRC_MAIN_JAVA/com/proyecto/domain/Actividad_Roo_Finder.aj... ~.domain.Actividad roo>

Page 17: Gvnix slides

Comando controller    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

~.domain.Actividad roo> controller all ­­package ~.web

Created SRC_MAIN_JAVA/com/proyecto/webCreated SRC_MAIN_JAVA/com/proyecto/web/ActividadController.javaCreated SRC_MAIN_WEBAPP/WEB­INF/springCreated SRC_MAIN_WEBAPP/WEB­INF/spring/webmvc­config.xmlCreated SRC_MAIN_JAVA/com/proyecto/web/ActividadController_Roo_Controller.ajManaged ROOT/pom.xml [Added dependency org.apache.tiles:tiles­core:2.2.1]... ~.web roo>

Page 18: Gvnix slides

Ta-da!

Page 19: Gvnix slides

Más allá delintérprete

decomandos

Page 20: Gvnix slides

ArquitecturaComponentes

Page 21: Gvnix slides

Entorno ejecución

JSP/Tiles GWT

Entidades Seguridad

Servicios Persistencia

Page 22: Gvnix slides

Temas

Page 23: Gvnix slides

Comando theme    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> theme install ­­name theme­citroo> theme set ­­name theme­cit... 

roo>

Page 24: Gvnix slides

Ta-da!

Page 25: Gvnix slides

Estructura dela aplicación

Page 26: Gvnix slides

Comando page    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

~.web roo> page list/Jornadas             /Jornadas/Jornada     /Jornadas/Jornadas    /Actividads           /Actividads/Actividad /Actividads/Actividads/Actividads/Inicio

~.web roo> page move ­­page /Actividads ­­into /Jornadas

Page 27: Gvnix slides

Ta-da!

Page 28: Gvnix slides

No sóloentidades

Page 29: Gvnix slides

Comando service    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> service class ­­class ~.services.ProgramaVirtualSrv

roo> 

Page 30: Gvnix slides

Comando service operation    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> service operation ­­name programa ­­service ~.services.ProgramaVirtualSrv ­­return java.lang.String ­­paramTypes java.util.Daservice operation ­­name programa ­­service ~.services.ProgramaVirtualSrv ­­return java.lang.String ­­paramTypes java.lang.String ­­paramNames dia

Page 31: Gvnix slides

Crear servicio web    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> service define ws ­­class ~.services.ProgramaVirtualSrv

roo> service export operation ­­class ~.services.ProgramaVirtualSrv ­­method programa

Page 32: Gvnix slides

Importar servicio web    ____  ____  ____     / __ \/ __ \/ __ \   / /_/ / / / / / / /  / _, _/ /_/ / /_/ /  /_/ |_|\____/\____/    1.1.0.M1 [rev 3a0b8a3]

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.

roo> service import ws ­­wsdl http://api.bing.net/search.wsdl ­­class ~.service.BingService

Page 33: Gvnix slides

Rich Internet ApplicationGoogle Web Toolkit

Ingeniería inversa BDJAAS

Informes

www.gvpontis.gva.es/gvnix

Page 34: Gvnix slides

DISID TECHNOLOGIES, S.L.www.disid.com

C/ San Vicente Mártir, 84 – 5A. ValenciaTelf: 902 013 309

Email: [email protected]