Package com.webobjects.foundation

Examples of com.webobjects.foundation._NSDelegate


  public void _processObjectStoreChanges(NSDictionary info) {
    if (ERXProperties.booleanForKey("er.extensions.ERXEC.denyMerges")) {
      Object original = delegate();
      try {
        if (_denyDelegate == null) {
          _denyDelegate = new _NSDelegate(_DenyMergeDelegate.class, new _DenyMergeDelegate(original));
        }
        setDelegate(_denyDelegate);
        super._processObjectStoreChanges(info);
      }
      finally {
View Full Code Here


   
    private _NSDelegate delegate;
   
        public _DenyMergeDelegate(Object original) {
      if (original != null) {
        delegate = new _NSDelegate(original.getClass(), original);
      }
    }
View Full Code Here

  private _NSDelegate _delegate;

  public AjaxTreeModel() {
    _expandedTreeNodes = new NSMutableSet();
    _collapsedTreeNodes = new NSMutableSet();
    _delegate = new _NSDelegate(AjaxTreeModel.Delegate.class);
  }
View Full Code Here

   * @see PListFormat#NSPropertyListOpenStepFormat
   * @return an NSData containing the property list output
   * @since 5.5.3
   */
  public static NSData dataFromPropertyList(Object plist, PListFormat type, String encoding) {
    _NSStreamingOutputData data = new _NSStreamingOutputData();
    writePropertyListToStream(plist, data, type, encoding);
    return data.dataNoCopy();
  }
View Full Code Here

        // we had errors reaching a host last time - do it again!
        if (aConfig.hostErrorArray.count() > 0) {
            _syncRequest = null;
            final WORequest aSyncRequest = syncRequest(aConfig);
            final _NSThreadsafeMutableArray syncHosts = aConfig.hostErrorArray;
            if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment))
                NSLog.debug.appendln("Sending sync requests to: " + syncHosts.array());
            // final MSiteConfig finalConfig = aConfig;
            Thread[] workers = new Thread[syncHosts.count()];
            for (int i = 0; i < workers.length; i++) {
                final int j = i;
                Runnable work = new Runnable() {
                    public void run() {
                        MHost aHost = (MHost) syncHosts.objectAtIndex(j);
                        aHost.sendRequestToWotaskd(aSyncRequest, true, true);
                    }
                };
                workers[j] = new Thread(work);
                workers[j].start();
View Full Code Here

        }
        if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment))
            NSLog.debug.appendln("message(): " + errorMessageArray.array());
        if ((errorMessageArray != null) && (errorMessageArray.count() > 0)) {
            _message = errorMessageArray.componentsJoinedByString(", ");
            errorMessageArray = new _NSThreadsafeMutableArray(new NSMutableArray<Object>());
        }
        return _message;
    }
View Full Code Here

        // getting the errors
        NSArray globalArray = theApplication.siteConfig().globalErrorDictionary.allValues();
        if ( (globalArray != null) && (globalArray.count() > 0) ) {
            errorResponse.addObjectsFromArray(globalArray);
            theApplication.siteConfig().globalErrorDictionary = new _NSThreadsafeMutableDictionary(new NSMutableDictionary());
        }
        if (errorResponse.count() != 0) {
            monitorResponse.takeValueForKey(errorResponse, "errorResponse");
        }
View Full Code Here

        String _message = null;
        if (siteConfig() != null) {
            NSArray globalArray = siteConfig().globalErrorDictionary.allValues();
            if ((globalArray != null) && (globalArray.count() > 0)) {
                addObjectsFromArrayIfAbsentToErrorMessageArray(globalArray);
                siteConfig().globalErrorDictionary = new _NSThreadsafeMutableDictionary(
                        new NSMutableDictionary<Object, Object>());
            }
        }
        if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment))
            NSLog.debug.appendln("message(): " + errorMessageArray.array());
View Full Code Here

  }

  @Override
  public NSKeyValueCoding._KeyBinding _keyGetBindingForKey(String key) {
    Class<?> objectClass = getClass();
    _NSThreadsafeMutableDictionary mapTable = classDescription()._kvcMapForClass(objectClass)._getBindings;
    NSKeyValueCoding._KeyBinding keyBinding = (NSKeyValueCoding._KeyBinding) mapTable.objectForKey(key);
    if (keyBinding == null) {
      keyBinding = _createKeyGetBindingForKey(key);
      mapTable.setObjectForKey(keyBinding != null ? keyBinding : new NSKeyValueCoding._KeyBinding(objectClass,
          key), key);
    }
    return keyBinding;
  }
View Full Code Here

  }

  @Override
  public NSKeyValueCoding._KeyBinding _keySetBindingForKey(String key) {
    Class<?> objectClass = getClass();
    _NSThreadsafeMutableDictionary mapTable = classDescription()._kvcMapForClass(objectClass)._setBindings;
    NSKeyValueCoding._KeyBinding keyBinding = (NSKeyValueCoding._KeyBinding) mapTable.objectForKey(key);
    if (keyBinding == null) {
      keyBinding = _createKeySetBindingForKey(key);
      mapTable.setObjectForKey(keyBinding != null ? keyBinding : new NSKeyValueCoding._KeyBinding(objectClass,
          key), key);
    }
    return keyBinding;
  }
View Full Code Here

TOP

Related Classes of com.webobjects.foundation._NSDelegate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.