Hi,

While trying to write a customized version of SecurityService (tapestry-security) I encountered a problem, which Im unable to solve

Target:
Writing a customized Version of SecurityService which supports the original methods as well as new ones.

Basic implementation is not hard


public interface MySecurityService extends SecurityService {
    public User getUser();
}

public class MySecurityServiceImpl extends SecurityServiceImpl implements MySecurityService {
    @Override
    public User getUser() {
        //Implementation
   }
}


but I cant figure out how to bind it.
Main problem is the existing SecurityService binding in the SecurityModule which causes the Error about two services implementing the same interface

I tried to overwrite SecurityService with MySecurityServiceImpl but it gave me an error about a self-requiring interface.

A possible solution could be to copy the interface and the implementation into MySecurityService(Impl) but that would be a rather bad solution.

I dont need the "old" SecurityService any more, and I would delete it (at least the binding) if i would know how.

The solution is possibly quite simple, but I cant figure it out by myself.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to