You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/06/13 08:29:03 UTC

[jira] [Created] (ISIS-803) Replace lifecycle methods with additional EventBus events.

Dan Haywood created ISIS-803:
--------------------------------

             Summary: Replace lifecycle methods with additional EventBus events.
                 Key: ISIS-803
                 URL: https://issues.apache.org/jira/browse/ISIS-803
             Project: Isis
          Issue Type: Improvement
          Components: Core
    Affects Versions: core-1.5.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
             Fix For: core-2.0.0


This issue is to remove a feature that is only partly implemented in the JDO objectstore, namely the lifecycle methods.

Jeroen and I were discussing this, and think they are possibly an anti-pattern since they tend to lead to fragile code.

Rather than have the object "pushing" changes to others, it would be better if an event were broadcast via the EventBus.  That way a subscribing service could pull appropriate changes and do whatever is necessary.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Re: [jira] [Created] (ISIS-803) Replace lifecycle methods with additional EventBus events.

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Fair enough... I've updated the ticket with these points.




On 13 June 2014 15:37, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>
wrote:

> Hi, Dan.
>
> I think that the lifecycle PostsXXX events were still incomplete.
>
> There's one thing I don't have clear enough from your comments.
>
> Also, we cannot impede that a user use the JDO or JPA standard methods.
> So, despite they are a not good practice, we at least should "support" when
> the standard JDO (JPA in the future) lifecycle methods are used (i.e., by
> "detecting" the changes on those domain objects, if that's used by Isis;
> but not sure if there's something special to do by Isis).
>
>
>
> El 13/06/2014, a las 08:29, Dan Haywood (JIRA) <ji...@apache.org> escribió:
>
>
> Dan Haywood created ISIS-803:
> --------------------------------
>
>             Summary: Replace lifecycle methods with additional EventBus
> events.
>                 Key: ISIS-803
>                 URL: https://issues.apache.org/jira/browse/ISIS-803
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: core-1.5.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: core-2.0.0
>
>
> This issue is to remove a feature that is only partly implemented in the
> JDO objectstore, namely the lifecycle methods.
>
> Jeroen and I were discussing this, and think they are possibly an
> anti-pattern since they tend to lead to fragile code.
>
> Rather than have the object "pushing" changes to others, it would be
> better if an event were broadcast via the EventBus.  That way a subscribing
> service could pull appropriate changes and do whatever is necessary.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)
>
>
>
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
>
>    902 900 231 / 620 267 520
>    http://www.twitter.com/oscarbou
>
>    http://es.linkedin.com/in/oscarbou
>
>    http://www.GesConsultor.com <http://www.gesconsultor.com/>
>
>
>
> Este mensaje y los ficheros anexos son confidenciales. Los mismos
> contienen información reservada que no puede ser difundida. Si usted ha
> recibido este correo por error, tenga la amabilidad de eliminarlo de su
> sistema y avisar al remitente mediante reenvío a su dirección electrónica;
> no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en
> un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de
> mantener el contacto con Ud. Si quiere saber de qué información disponemos
> de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un
> escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente
> dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo -
> 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia).
> Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos
> adjuntos no contengan virus informáticos, y en caso que los tuvieran
> eliminarlos.
>
>
>
>
>
>

Re: [jira] [Created] (ISIS-803) Replace lifecycle methods with additional EventBus events.

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Hi, Dan.

I think that the lifecycle PostsXXX events were still incomplete.

There's one thing I don't have clear enough from your comments.

Also, we cannot impede that a user use the JDO or JPA standard methods. So, despite they are a not good practice, we at least should "support" when the standard JDO (JPA in the future) lifecycle methods are used (i.e., by "detecting" the changes on those domain objects, if that's used by Isis; but not sure if there's something special to do by Isis).



El 13/06/2014, a las 08:29, Dan Haywood (JIRA) <ji...@apache.org> escribió:

> Dan Haywood created ISIS-803:
> --------------------------------
> 
>             Summary: Replace lifecycle methods with additional EventBus events.
>                 Key: ISIS-803
>                 URL: https://issues.apache.org/jira/browse/ISIS-803
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: core-1.5.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: core-2.0.0
> 
> 
> This issue is to remove a feature that is only partly implemented in the JDO objectstore, namely the lifecycle methods.
> 
> Jeroen and I were discussing this, and think they are possibly an anti-pattern since they tend to lead to fragile code.
> 
> Rather than have the object "pushing" changes to others, it would be better if an event were broadcast via the EventBus.  That way a subscribing service could pull appropriate changes and do whatever is necessary.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.