Results 1 to 3 of 3

Thread: shorten long class names?

  1. #1
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default 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. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    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 at 12:58 AM.

  3. #3
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •