1 Reply Latest reply on Mar 28, 2009 6:03 AM by oguzyalcin.oguzhanyalcin.gazi.edu.tr

    Publishing components via interface?

    dirk-mahler

      Hi,


      is there a way to reduce the visibility of a components methods through an interface? Example:


      public interface MyService {
      
        public void methodA();
      
      }
      




      @Name("myService")
      @Scope(ScopeType.CONVERSATION)
      @Transactional
      public class MyServiceImpl implements UserService {
      
        public void methodA() {
        ...
        }
      
        public void methodB() {
        ...
        }
      }



      What I'd like to see is that if using the component in a JSF it would only be allowed to use


      #{myService.methodA}



      but not


      #{myService.methodB}

      .



      Thanks in advance!