Package org.osgi.service.blueprint.container

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


        return set;
    }
   
    public Object getComponentInstance(String id) throws NoSuchComponentException {
        if (repository == null || destroyed.get()) {
            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

        Object instance = getInstance(name);
        if (instance == null) {
            Map <String, Object> instances = createInstances(Arrays.asList(name));
            instance = instances.get(name);
            if (instance == null) {
                throw new NoSuchComponentException(name);
            }
        }
        return instance;
    }
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

    }

    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;
            //We do not convert this, it might be an unwrappered bean, but we don't know what type
View Full Code Here

        return set;
    }
   
    public Object getComponentInstance(String id) throws NoSuchComponentException {
        if (repository == null || destroyed.get()) {
            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

        Object instance = getInstance(name);
        if (instance == null) {
            Map <String, Object> instances = createInstances(Arrays.asList(name));
            instance = instances.get(name);
            if (instance == null) {
                throw new NoSuchComponentException(name);
            }
        }
        return instance;
    }
View Full Code Here

        Object instance = getInstance(name);
        if (instance == null) {
            Map <String, Object> instances = createInstances(Arrays.asList(name));
            instance = instances.get(name);
            if (instance == null) {
                throw new NoSuchComponentException(name);
            }
        }
        return instance;
    }
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.