Package org.osgi.service.blueprint.container

Examples of org.osgi.service.blueprint.container.NoSuchComponentException


    }

    protected Object internalCreate() throws ComponentDefinitionException {
        ExecutionContext context = ExecutionContext.Holder.getContext();
        if (!context.containsObject(idRef)) {
            throw new NoSuchComponentException(idRef);
        }
        return idRef;
    }
View Full Code Here


    }

    protected Object internalCreate() throws ComponentDefinitionException {
        ExecutionContext context = ExecutionContext.Holder.getContext();
        if (!context.containsObject(idRef)) {
            throw new NoSuchComponentException(idRef);
        }
        Object instance = context.getObject(idRef);
        if (instance instanceof Recipe) {
            Recipe recipe = (Recipe) instance;
            instance = recipe.create();
View Full Code Here

      if (compId.equals("comp1")) {
        return comp1;
      } else if (compId.equals("comp2")) {
        return comp2;
      }
      throw new NoSuchComponentException("Component does not exist", compId);
    }
View Full Code Here

        return set;
    }
   
    public Object getComponentInstance(String id) throws NoSuchComponentException {
        if (repository == null) {
            throw new NoSuchComponentException(id);
        }
        try {
            LOGGER.debug("Instantiating component {}", id);
            return repository.create(id);
        } catch (NoSuchComponentException e) {
View Full Code Here

    }

    public ComponentMetadata getComponentMetadata(String id) {
        ComponentMetadata metadata = componentDefinitionRegistry.getComponentDefinition(id);
        if (metadata == null) {
            throw new NoSuchComponentException(id);
        }
        return metadata;
    }
View Full Code Here

TOP

Related Classes of org.osgi.service.blueprint.container.NoSuchComponentException

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.