Examples of Capability


Examples of org.apache.jetspeed.capabilities.Capability

  /*
     * @see org.apache.jetspeed.capabilities.Capabilities#createCapability(String)
     */
  public Capability createCapability(String capabilityName)   throws ClassNotFoundException
      {
    Capability capability = null;
    if (capabilityName != null)
    {
      //try to find it in space
      capability = this.getCapability(capabilityName);
      if (capability != null)
        return capability;
    }
        try
        {
          capability = (Capability) beanFactory.getBean(
                    this.capabilityBeanName, Capability.class);
          capability.setName(capabilityName);
            return capability;
        } catch (Exception e)
        {
            log.error("Failed to create capability instance for " + this.capabilityBeanName
                    + " error : " + e.getLocalizedMessage());
View Full Code Here

Examples of org.apache.muse.core.Capability

        Iterator i = getCapabilityDefinitions().iterator();
       
        while (i.hasNext())
        {
            CapabilityDefinition next = (CapabilityDefinition)i.next();
            Capability capability = next.newInstance();           
            resource.addCapability(capability);
        }
       
        return resource;
    }
View Full Code Here

Examples of org.apache.muse.tools.generator.util.Capability

    writeToFileCheck(descriptorDocument, descriptorFile);
  }

  protected Class getResourceClass(Map capabilities) {
    for(Iterator i = capabilities.values().iterator(); i.hasNext();) {
      Capability capability = (Capability)i.next();
      if(capability.getProperties().size() > 0) {
        return org.apache.muse.ws.resource.impl.SimpleWsResource.class;
      }
    }
    return org.apache.muse.core.SimpleResource.class;
  }
View Full Code Here

Examples of org.apache.uima.resource.metadata.Capability

//      TypeSystemDescription tsd = new TypeSystemDescription_impl();
//      tsd.addType("NamedEntity", "", "uima.tcas.Annotation");
//      tsd.addType("DocumentStructure", "", "uima.cas.TOP");
//      primitiveDesc.getAnalysisEngineMetaData().setTypeSystem(tsd);
      Capability cap = new Capability_impl();
      cap.addOutputType("NamedEntity", true);
      cap.addOutputType("DocumentStructure", true);
      Capability[] caps = new Capability[] {cap};
      primitiveDesc.getAnalysisEngineMetaData().setCapabilities(caps);
      _testProcess(primitiveDesc);

      primitiveDesc = new AnalysisEngineDescription_impl();
      primitiveDesc.setPrimitive(true);
      primitiveDesc
              .setAnnotatorImplementationName("org.apache.uima.analysis_engine.impl.TestAnnotator");
      primitiveDesc.getMetaData().setName("Test Primitive TAE");

      TypeSystemDescription tsd = new TypeSystemDescription_impl();
      tsd.addType("NamedEntity", "", "uima.tcas.Annotation");
      tsd.addType("DocumentStructure", "", "uima.cas.TOP");
      primitiveDesc.getAnalysisEngineMetaData().setTypeSystem(tsd);
      cap = new Capability_impl();
      cap.addOutputType("NamedEntity", true);
      cap.addOutputType("DocumentStructure", true);
      caps = new Capability[] {cap};
      primitiveDesc.getAnalysisEngineMetaData().setCapabilities(caps);
      _testProcess(primitiveDesc);

      // test simple aggregate TextAnalysisEngine (again using TestAnnotator class)
View Full Code Here

Examples of org.ethereum.net.client.Capability

            RLPElement capVersion = ((RLPList)capabilityList.get(i)).get(1);
           
            String name = new String(capId.getRLPData());
            byte version = capVersion.getRLPData() == null ? 0 : capVersion.getRLPData()[0];
           
            Capability cap = new Capability(name, version);
      this.capabilities.add(cap);
    }

    byte[] peerPortBytes = ((RLPItem) paramsList.get(4)).getRLPData();
    this.listenPort = ByteUtil.byteArrayToInt(peerPortBytes);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.Capability

      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      capabilities = new CopyOnWriteArrayList<Capability>();

      // We have a module capability
      Object version = getVersion();
      Capability capability = factory.createModule(getName(), version);
      capabilities.add(capability);
     
      // Do we determine package capabilities
      ClassFilter included = getIncluded();
      ClassFilter excluded = getExcluded();
View Full Code Here

Examples of org.jboss.gravia.resource.Capability

    }

    // Wrap the resource and add a generated jboss-deployment-structure.xml
    private ResourceWrapper getWrappedResourceContent(String runtimeName, Resource resource, Map<Requirement, Resource> mapping) {

        Capability icap = resource.getIdentityCapability();
        if (runtimeName == null) {
            String rtnameAtt = (String) icap.getAttribute(IdentityNamespace.CAPABILITY_RUNTIME_NAME_ATTRIBUTE);
            runtimeName = rtnameAtt != null ? rtnameAtt : resource.getIdentity().getSymbolicName() + ".jar";
        }

        // Do nothing if there is no mapping
        if (mapping == null || mapping.isEmpty()) {
View Full Code Here

Examples of org.locationtech.udig.catalog.wmsc.server.Capability

            try {
                if (members == null) {
                    members = new LinkedList<IResolve>();

                    WMSCCapabilities capabilities = getWMSC().getCapabilities();
                    Capability capability = capabilities.getCapability();
                    VendorSpecificCapabilities vendorCapabilities = capability.getVSCapabilities();
                    if( vendorCapabilities != null ){
                        List<WMSTileSet> tiles = vendorCapabilities.getTiles();
                       
                        /*
                         * Retrieved no layers from the WMS - something is wrong, either the WMS doesn't
View Full Code Here

Examples of org.osgi.framework.resource.Capability

    }

    private Bundle installSupportBundle(BundleContext context, ModuleIdentifier moduleid) throws BundleException {
        Repository repository = getRepository(context);
        Requirement req = XRequirementBuilder.createArtifactRequirement(moduleid);
        Capability cap = repository.findProviders(req).iterator().next();
        URL location = (URL) cap.getAttributes().get(XResourceConstants.CONTENT_URL);
        return context.installBundle(location.toExternalForm());
    }
View Full Code Here

Examples of org.osgi.resource.Capability

        return true;
    }

    private static VersionedClause resourceToRunBundle(Resource resource) {
        Capability idCap = ResourceUtils.getIdentityCapability(resource);
        String identity = ResourceUtils.getIdentity(idCap);

        // Map version range string, using "latest" for any workspace resources
        Attrs attribs = new Attrs();
        String versionRangeStr;
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.