1 Reply Latest reply on Mar 28, 2009 6:03 AM by Oguzhan YALCIN

    Publishing components via interface?

    Dirk Mahler Newbie

      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!