Search:

Type: Posts; User: juk; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,470

    http://static.springframework.org/spring/docs/2.0....

    http://static.springframework.org/spring/docs/2.0.x/reference/aop.html

    take a look at 6.8. Using AspectJ with Spring applications
  2. Replies
    5
    Views
    3,470

    Here is a working example, hope it helps. ...

    Here is a working example, hope it helps.


    @Configurable
    public class Robot {

    private Service;

    setService(Service service) {
    // impl
  3. Replies
    24
    Views
    3,219

    I don't think you can use @Configurable if the...

    I don't think you can use @Configurable if the business logic is not provided by Spring.
  4. Thread: need an idea

    by juk
    Replies
    8
    Views
    1,113

    You can also expose it as a web-service. You can...

    You can also expose it as a web-service. You can say to your boss that other applications (builded on different languages) can also access you search service (or any other one) :)
  5. Replies
    12
    Views
    2,525

    An option would be to create a security aspect to...

    An option would be to create a security aspect to restrict the access to the public setters of the property (and also change the getters to return copies).

    EDIT: Coincidentally I was reading a...
  6. Replies
    12
    Views
    2,525

    If there is not a rule (like only one Expiration...

    If there is not a rule (like only one Expiration Date change), it is not a business logic, is an infrastructure concern and you can take other solution to resolve it even in DDD (you are not forced...
  7. Replies
    12
    Views
    2,525

    You can also define this as a invariant of the...

    You can also define this as a invariant of the object. If there is a rule to only set the expiration date once, you can do something like it:

    setExpirationDate(Date date) {
    if(expirationDate...
  8. It is not my bible. I just agree with most of it,...

    It is not my bible. I just agree with most of it, and thats completly different.


    I was talking about DDD VOs, and they are not just data. On DDD, VOs have business logic. Maybe you are confused...
  9. From Domain Driven Design Quickly: "It can be...

    From Domain Driven Design Quickly:

    "It can be noted that the implementation of a repository can be
    closely liked to the infrastructure, but that the repository
    interface will be pure domain...
  10. The object don't know how to store itself, thats...

    The object don't know how to store itself, thats wrong. It have a reference to another domain member, the repository. The repository is part of the domain. The object only knows that there is a...
  11. I was not the one caring for the supporters of...

    I was not the one caring for the supporters of the argument there. You came with Gaving King and Christian Bauer and I just told you I think Fowler is a better reference on software design. I saw a...
  12. Replies
    54
    Views
    11,438

    constv, thanks for the references on the ce and...

    constv, thanks for the references on the ce and rte subject. On my last project I started to think about not using ce (suggested by one developer) and now I am convinced that I will not use it...
  13. Well, thats a controversial point. Gaving King...

    Well, thats a controversial point. Gaving King was much blamed for the comments about DDD on his blog (and he did much of it before reading DDD). The DDD concepts for repositories are being well...
  14. I think the definitions of service/repositories...

    I think the definitions of service/repositories in Domain Driven Design can clarify many points in this discussion. You are focused on the technology (how to have DataSourceExceptions?), but services...
  15. Replies
    4
    Views
    1,697

    There is a lot of threads in this forum with...

    There is a lot of threads in this forum with working <aop:aspect> examples. I quickly found one: http://forum.springframework.org/showthread.php?t=68580
  16. Replies
    4
    Views
    1,697

    Looks like Spring is not finding any...

    Looks like Spring is not finding any com.org.learning.demoLogic.DemoResult.IDemoResult interface. Check if this is really the full qualified interface name.

    Also please see in the documentation...
  17. You can access the info using the JoinPoint and...

    You can access the info using the JoinPoint and the returning property (for after returning method).

    Examples:


    public void before(JoinPoint joinPoint) {
    }

    public void after(JoinPoint...
  18. don_carlos, what exception r you throwing from...

    don_carlos, what exception r you throwing from your DAO for test purposes?
  19. Replies
    1
    Views
    711

    The exception trace can be helpful here. If you...

    The exception trace can be helpful here. If you remove the second mortgage from the list it will only be reflected on the database if you set up CascadeType.REMOVE on your getMortgages() method.
    ...
  20. Replies
    4
    Views
    1,486

    Spring gives support to a lot of different data...

    Spring gives support to a lot of different data base access models (jdbc, hibernate, ibatis, etc).
  21. The exception is really being thrown by this...

    The exception is really being thrown by this method or is being thrown by the Transactional AOP created by Spring?

    The @Transactional annotation makes Spring apply an advice to check the...
  22. Please post your applicationContext.xml.

    Please post your applicationContext.xml.
  23. Spring supports only method joinpoints, so you...

    Spring supports only method joinpoints, so you can advice only methods. You can use AspectJ to advice other joinpoints (like property state changes).
  24. You should access the method using the JoinPoint...

    You should access the method using the JoinPoint class. Change your method signature from (Method method, Object[] args, Object target, Throwable ex) to (JoinPoint joinPoint, Throwable ex).
  25. Replies
    19
    Views
    2,414

    I agree. I am facing a very similar situation,...

    I agree. I am facing a very similar situation, having a batch and a web project importing a jar cointaining services/repositories. We made pretty clear to the developers to not inject the...
Results 1 to 25 of 25