Announcement Announcement Module
Collapse
No announcement yet.
shorten long class names? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • shorten long class names?

    In the following, is there some way to shorten the full class path of the class, the edu.berkeley.peoplelocator.api.directory.dto.IDire ctoryInfo?. It's the return type of the method. If I use just IDirectoryInfo it blows up complaining about not an exact match.

    Code:
    @Component
    @Aspect
    public class LdapSearchCache {
        private final transient Logger log = LoggerFactory.getLogger(getClass());
    
        @Pointcut("execution(edu.berkeley.peoplelocator.api.directory.dto.IDirectoryInfo LdapSearch.findByUid(String))")
        private void findByUid() {
            // empty
        }
    ...

  • #2
    You already pointed complete class and method signatures, so it is possible simply to change return type definition to the *.
    Last edited by denis.zhdanov; Sep 19th, 2008, 12:58 AM.

    Comment


    • #3
      Thanks, I was thinking of someone else adding a method with overloading but I don't think you can overload by changing only the return type.

      Comment

      Working...
      X