Class DTOConstants
java.lang.Object
org.osgi.service.jakartars.runtime.dto.DTOConstants
Defines standard constants for the DTOs. The error codes are defined to take
the same values as used by the Http Service Whiteboard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_NAMEproperty and a service with that name already exists in the runtimestatic final intThe extension service is registered in the service registry but the service is not registered using a recognized extension typestatic final intThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_APPLICATION_SELECTproperty and the filters is not matched by any running application.static final intThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_EXTENSION_SELECTproperty and one or more of the filters is not matched.static final intThe service is registered in the service registry but getting the service fails as it returnsnull.static final intService is shadowed by another service.static final intFailure reason is unknown.static final intThe service is registered in the service registry but the service properties are invalid. -
Method Summary
-
Field Details
-
FAILURE_REASON_UNKNOWN
public static final int FAILURE_REASON_UNKNOWNFailure reason is unknown.- See Also:
-
FAILURE_REASON_SHADOWED_BY_OTHER_SERVICE
public static final int FAILURE_REASON_SHADOWED_BY_OTHER_SERVICEService is shadowed by another service.For example, another service with the same service properties but having a higher service ranking. See
ServiceReference.compareTo(Object).- See Also:
-
FAILURE_REASON_SERVICE_NOT_GETTABLE
public static final int FAILURE_REASON_SERVICE_NOT_GETTABLEThe service is registered in the service registry but getting the service fails as it returnsnull.- See Also:
-
FAILURE_REASON_VALIDATION_FAILED
public static final int FAILURE_REASON_VALIDATION_FAILEDThe service is registered in the service registry but the service properties are invalid.- See Also:
-
FAILURE_REASON_NOT_AN_EXTENSION_TYPE
public static final int FAILURE_REASON_NOT_AN_EXTENSION_TYPEThe extension service is registered in the service registry but the service is not registered using a recognized extension type- See Also:
-
FAILURE_REASON_REQUIRED_EXTENSIONS_UNAVAILABLE
public static final int FAILURE_REASON_REQUIRED_EXTENSIONS_UNAVAILABLEThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_EXTENSION_SELECTproperty and one or more of the filters is not matched.- See Also:
-
FAILURE_REASON_DUPLICATE_NAME
public static final int FAILURE_REASON_DUPLICATE_NAMEThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_NAMEproperty and a service with that name already exists in the runtime- See Also:
-
FAILURE_REASON_REQUIRED_APPLICATION_UNAVAILABLE
public static final int FAILURE_REASON_REQUIRED_APPLICATION_UNAVAILABLEThe service is registered in the service registry with theJakartarsWhiteboardConstants.JAKARTA_RS_APPLICATION_SELECTproperty and the filters is not matched by any running application.- See Also:
-