OSGi™ Enterprise
Release 5

org.osgi.service.blueprint.container
Class NoSuchComponentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.osgi.service.blueprint.container.NoSuchComponentException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchComponentException
extends java.lang.RuntimeException

A Blueprint exception indicating that a component does not exist in a Blueprint Container. This exception is thrown when an attempt is made to create a component instance or lookup Component Metadata using a component id that does not exist in the Blueprint Container.

See Also:
Serialized Form

Constructor Summary
NoSuchComponentException(java.lang.String id)
          Create a No Such Component Exception for a non-existent component.
NoSuchComponentException(java.lang.String msg, java.lang.String id)
          Create a No Such Component Exception for a non-existent component.
 
Method Summary
 java.lang.String getComponentId()
          Returns the id of the non-existent component.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSuchComponentException

public NoSuchComponentException(java.lang.String msg,
                                java.lang.String id)
Create a No Such Component Exception for a non-existent component.

Parameters:
msg - The associated message.
id - The id of the non-existent component.

NoSuchComponentException

public NoSuchComponentException(java.lang.String id)
Create a No Such Component Exception for a non-existent component.

Parameters:
id - The id of the non-existent component.
Method Detail

getComponentId

public java.lang.String getComponentId()
Returns the id of the non-existent component.

Returns:
The id of the non-existent component.

OSGi™ Enterprise
Release 5

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0