Examples of newInstance()


Examples of org.eclipse.ecf.filetransfer.service.IRemoteFileSystemBrowserFactory.newInstance()

    }
    if (protocolFactory == null)
      return null;
    final IRemoteFileSystemBrowserFactory factory = (IRemoteFileSystemBrowserFactory) protocolFactory.getFactory();
    if (factory != null)
      return factory.newInstance();
    return null;
  }

  public IAdapterManager getAdapterManager() {
    // First, try to get the adapter manager via
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory.newInstance()

    }
    if (protocolFactory == null)
      return null;
    final IRetrieveFileTransferFactory factory = (IRetrieveFileTransferFactory) protocolFactory.getFactory();
    if (factory != null)
      return factory.newInstance();
    return null;
  }

  public ISendFileTransfer getSendFileTransfer(String protocol) {
    ProtocolFactory protocolFactory = null;
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.service.ISendFileTransferFactory.newInstance()

    }
    if (protocolFactory == null)
      return null;
    final ISendFileTransferFactory factory = (ISendFileTransferFactory) protocolFactory.getFactory();
    if (factory != null)
      return factory.newInstance();
    return null;
  }

  public IRemoteFileSystemBrowser getBrowseFileTransfer(String protocol) {
    ProtocolFactory protocolFactory = null;
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaArrayType.newInstance()

  @Override
  public void execute() throws CoreException {

    IJavaArrayType arrayType = getArrayType(
        fTypeSignature.replace('/', '.'), fDimensions);
    IJavaArray array = arrayType.newInstance(fLength);

    for (int i = fLength - 1; i >= 0; i--) {
      array.setValue(i, popValue());
    }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType.newInstance()

    // args are in reverse order
    for (int i = fArgCount - 1; i >= 0; i--) {
      args[i] = popValue();
    }
    IJavaClassType clazz = (IJavaClassType) pop();
    IJavaValue result = clazz.newInstance(fSignature, args, getContext()
        .getThread());
    push(result);
  }

  @Override
View Full Code Here

Examples of org.elasticsearch.transport.TransportRequestHandler.newInstance()

        try {
            final TransportRequestHandler handler = transportServiceAdapter.handler(action);
            if (handler == null) {
                throw new ActionNotFoundTransportException(action);
            }
            final Streamable streamable = handler.newInstance();
            streamable.readFrom(buffer);
            if (handler.executor() == ThreadPool.Names.SAME) {
                //noinspection unchecked
                handler.messageReceived(streamable, transportChannel);
            } else {
View Full Code Here

Examples of org.exolab.castor.mapping.ExtendedFieldHandler.newInstance()

                        Arguments args = processConstructorArgs(atts, classDesc);
                        if ((args._values != null) && (args._values.length > 0)) {
                            if (handler instanceof ExtendedFieldHandler) {
                                ExtendedFieldHandler efh =
                                    (ExtendedFieldHandler)handler;
                                state.object = efh.newInstance(parentState.object, args._values);
                            }
                            else {
                                String err = "constructor arguments can only be " +
                                    "used with an ExtendedFieldHandler.";
                                throw new SAXException(err);
View Full Code Here

Examples of org.exolab.castor.mapping.FieldHandler.newInstance()

                        //remove the descriptor from the used list
                        parentState.markAsNotUsed(descriptor);
                    }
                }
                else {
                    containerObject = handler.newInstance(object);
                }

            }
            //2-- the container is multivalued
            else {
View Full Code Here

Examples of org.exolab.castor.persist.ClassMolder.newInstance()

                // object = molder.newInstance();
                if (_instanceFactory != null) {
                    objectInTx = _instanceFactory.newInstance(molder
                            .getName(), _db.getClassLoader());
                } else {
                    objectInTx = molder.newInstance(_db
                            .getClassLoader());
                }
               
                proposedObject.setProposedEntityClass(objectInTx.getClass());
                proposedObject.setActualEntityClass(objectInTx.getClass());
View Full Code Here

Examples of org.geomajas.layer.feature.FeatureModel.newInstance()

      VectorLayer layer = context.get(PipelineCode.LAYER_KEY, VectorLayer.class);
      FeatureModel featureModel = layer.getFeatureModel();
      if (securityContext.isFeatureCreateAuthorized(layerId, newFeature)) {
        Object feature;
        if (newFeature.getId() == null) {
          feature = featureModel.newInstance();
        } else {
          feature = featureModel.newInstance(newFeature.getId());
        }
        context.put(PipelineCode.FEATURE_DATA_OBJECT_KEY, feature);
        context.put(PipelineCode.IS_CREATE_KEY, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.