| | |
| | | ServerManagementContext context = ServerManagementContext.getInstance(); |
| | | ServerManagedObject<? extends S> mo = context.decode(getPath(definition), |
| | | configEntry); |
| | | |
| | | // Ensure constraints are satisfied. |
| | | mo.ensureIsUsable(); |
| | | |
| | | return mo.getConfiguration(); |
| | | } catch (DefinitionDecodingException e) { |
| | | throw ConfigExceptionFactory.getInstance() |
| | |
| | | } catch (ServerManagedObjectDecodingException e) { |
| | | throw ConfigExceptionFactory.getInstance() |
| | | .createDecodingExceptionAdaptor(e); |
| | | } catch (ConstraintViolationException e) { |
| | | throw ConfigExceptionFactory.getInstance() |
| | | .createDecodingExceptionAdaptor(e); |
| | | } |
| | | } |
| | | |