org.glassfish.osgicdi
Class ServiceUnavailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.osgi.framework.ServiceException
                  extended by org.glassfish.osgicdi.ServiceUnavailableException
All Implemented Interfaces:
java.io.Serializable

public class ServiceUnavailableException
extends org.osgi.framework.ServiceException

This exception is thrown to indicate that the service is unavailable. If an OSGiService service reference is marked as dynamic, an attempt is made to get a reference to the service in the OSGi Service Registry when the service is used, and then the method is invoked on the newly obtained service. If the service cannot be discovered or a reference obtained, the ServiceUnavailableException is thrown.

Author:
Sivakumar Thyagarajan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.osgi.framework.ServiceException
FACTORY_ERROR, FACTORY_EXCEPTION, REMOTE, SUBCLASSED, UNREGISTERED, UNSPECIFIED
 
Constructor Summary
ServiceUnavailableException(java.lang.String msg, int type, java.lang.Throwable cause)
          
 
Method Summary
 
Methods inherited from class org.osgi.framework.ServiceException
getType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceUnavailableException

public ServiceUnavailableException(java.lang.String msg,
                                   int type,
                                   java.lang.Throwable cause)



Copyright © 2011 GlassFish Community. All Rights Reserved.