Link to home
Start Free TrialLog in
Avatar of Anj78
Anj78

asked on

java programming

I am trying to understand the following method.Is this methos using inner classes?
" ZeroParameterRoutine " is that class ?


protected boolean handleDomainScopeChange(Object pNewScopeOverride) {          
    boolean wChangingToPrivate = getCustomDfnEditor().isPrivate();    
   
    // set the exclude privatedfns flag.
    getCustomDfnWorkModel().setExcludePrivateDfns(!wChangingToPrivate);
   
    if (wChangingToPrivate) {
      ZeroParameterRoutine wRoutine = new ZeroParameterRoutine() {
        public Object perform() {
          // wait till the corrent user id is in the security pane after domain scope change...
          getCustomDfnWorkModel().setCurrentUserID(getCustomDfnEditor().getCurrentUserIDForCustomDfnQuery());
          return null;
        }
      };
      ViewUtilities.invokeLater(getDomainContext(), wRoutine);
    }
    return true;  
  }
Avatar of Ajay-Singh
Ajay-Singh

Yes. Its using anonymous inner class.
Avatar of Anj78

ASKER

is there a specific resion using annonymous class and name.?explain me littel more thanks.
Look at this portion
 
ZeroParameterRoutine wRoutine = new ZeroParameterRoutine() {
        public Object perform() {
          // wait till the corrent user id is in the security pane after
domain scope change...
 
getCustomDfnWorkModel().setCurrentUserID(getCustomDfnEditor().getCurrentUser
IDForCustomDfnQuery());
          return null;
        }
      };

 
The inner class here provide programming continence.
Avatar of Anj78

ASKER

continence?...
can you explain me benefites of this?
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial