private static void ensureReplaceable() { if (!isReplaceable && instance != null) { throw new ApplicationException("Clock already set up"); } }
@Override protected String columnType() { throw new ApplicationException("Should never be called"); }
@Override public void raiseError(final String message) { throw new ApplicationException(message); }
@Override protected Object preparedStatementObject(final ObjectAdapter value) { throw new ApplicationException("Should never be called"); }
@Programmatic public Object instantiate(final String fqcn) { final Class<?> cls = load(fqcn); try { return cls.newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new ApplicationException(e); } }
@Programmatic public Object instantiate(final String fqcn) { final Class<?> cls = load(fqcn); try { return cls.newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new ApplicationException(e); } }
@Programmatic public Class<?> load(final String fqcn) { try { return loadClass(fqcn); } catch (ClassNotFoundException e) { throw new ApplicationException(e); } }
@Programmatic public Class<?> load(final String fqcn) { try { return loadClass(fqcn); } catch (ClassNotFoundException e) { throw new ApplicationException(e); } }
public Map<String,String> toXsd(final Object domainObject, final IsisSchemas isisSchemas) { try { final Class<?> domainClass = domainObject.getClass(); final JAXBContext context = jaxbContextFor(domainClass); final CatalogingSchemaOutputResolver outputResolver = new CatalogingSchemaOutputResolver(isisSchemas); context.generateSchema(outputResolver); return outputResolver.asMap(); } catch (final IOException ex) { throw new ApplicationException(ex); } } }
throw new ApplicationException("Unable to render document template", e);
throw new ApplicationException("Unable to render document template", e);