use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.
the class Admin method doUpdateVideoExecuterClass.
private void doUpdateVideoExecuterClass() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
admin.updateVideoExecuterClass(cd);
store();
}
use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.
the class Admin method doUpdateDefaultResourceProvider.
private void doUpdateDefaultResourceProvider() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
String arguments = getString("admin", action, "arguments");
admin.updateDefaultResourceProvider(cd, arguments);
store();
adminSync.broadcast(attributes, config);
}
use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.
the class Admin method doUpdateJDBCDriver.
private void doUpdateJDBCDriver() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "classname"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
String label = getString("admin", action, "label");
admin.updateJDBCDriver(label, cd);
store();
adminSync.broadcast(attributes, config);
}
use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.
the class Admin method doUpdateClusterClass.
private void doUpdateClusterClass() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
admin.updateClusterClass(cd);
store();
}
use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.
the class XMLConfigAdmin method updateClusterClass.
public void updateClusterClass(ClassDefinition cd) throws PageException {
if (cd.getClassName() == null)
cd = new ClassDefinitionImpl(ClusterNotSupported.class.getName(), null, null, null);
Class clazz = null;
try {
clazz = cd.getClazz();
} catch (Exception e) {
throw Caster.toPageException(e);
}
if (!Reflector.isInstaneOf(clazz, Cluster.class) && !Reflector.isInstaneOf(clazz, ClusterRemote.class))
throw new ApplicationException("class [" + clazz.getName() + "] does not implement interface [" + Cluster.class.getName() + "] or [" + ClusterRemote.class.getName() + "]");
Element scope = _getRootElement("scope");
setClass(scope, null, "cluster-", cd);
ScopeContext.clearClusterScope();
}
Aggregations