java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.hk2.api.HK2RuntimeException
org.glassfish.hk2.api.DuplicateServiceException
- All Implemented Interfaces:
Serializable
This exception is thrown when an idempotent filter of a
DynamicConfiguration object matches an existing descriptor
in the ServiceLocator
- Author:
- jwells
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFor serializationDuplicateServiceException(Descriptor existingDescriptor) Called by the system to initialize the existing descriptor that matchedDuplicateServiceException(Descriptor existingDescriptor, String serviceLocatorName) Called by the system to initialize the existing descriptor that matched -
Method Summary
Modifier and TypeMethodDescriptionGets the descriptor that matched one of the idempotent filterstoString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DuplicateServiceException
public DuplicateServiceException()For serialization -
DuplicateServiceException
Called by the system to initialize the existing descriptor that matched- Parameters:
existingDescriptor- The possibly null existing descriptor that matched one of the idempotent filters
-
DuplicateServiceException
Called by the system to initialize the existing descriptor that matched- Parameters:
existingDescriptor- The possibly null existing descriptor that matched one of the idempotent filters.serviceLocatorName- The name of theServiceLocatorthat threw the exception.
-
-
Method Details