Package org.glassfish.hk2.api
Class DuplicateServiceException
- 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:
java.io.Serializable
public class DuplicateServiceException extends HK2RuntimeException
This exception is thrown when an idempotent filter of a DynamicConfiguration object matches an existing descriptor in the ServiceLocator- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Descriptor
existingDescriptor
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DuplicateServiceException()
For serializationDuplicateServiceException(Descriptor existingDescriptor)
Called by the system to initialize the existing descriptor that matched
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor
getExistingDescriptor()
Gets the descriptor that matched one of the idempotent filtersjava.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
existingDescriptor
private Descriptor existingDescriptor
-
-
Constructor Detail
-
DuplicateServiceException
public DuplicateServiceException()
For serialization
-
DuplicateServiceException
public DuplicateServiceException(Descriptor existingDescriptor)
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
-
-
Method Detail
-
getExistingDescriptor
public Descriptor getExistingDescriptor()
Gets the descriptor that matched one of the idempotent filters- Returns:
- The descriptor that matched one of the idempotent filters or null if the matching descriptor is unknown
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-