Search in sources :

Example 6 with ClassDefinitionImpl

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();
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 7 with ClassDefinitionImpl

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);
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 8 with ClassDefinitionImpl

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);
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 9 with ClassDefinitionImpl

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();
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 10 with ClassDefinitionImpl

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();
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClusterNotSupported(lucee.runtime.type.scope.ClusterNotSupported) ApplicationException(lucee.runtime.exp.ApplicationException) Element(org.w3c.dom.Element) FunctionLibException(lucee.transformer.library.function.FunctionLibException) PageException(lucee.runtime.exp.PageException) ConverterException(lucee.runtime.converter.ConverterException) SecurityException(lucee.runtime.exp.SecurityException) TagLibException(lucee.transformer.library.tag.TagLibException) IOException(java.io.IOException) UnknownHostException(java.net.UnknownHostException) CFXTagException(lucee.runtime.cfx.CFXTagException) BundleException(org.osgi.framework.BundleException) SAXException(org.xml.sax.SAXException) UnsupportedEncodingException(java.io.UnsupportedEncodingException) ClassException(lucee.commons.lang.ClassException) DOMException(org.w3c.dom.DOMException) MalformedURLException(java.net.MalformedURLException) ExpressionException(lucee.runtime.exp.ExpressionException) ApplicationException(lucee.runtime.exp.ApplicationException) HTTPException(lucee.runtime.exp.HTTPException)

Aggregations

ClassDefinitionImpl (lucee.transformer.library.ClassDefinitionImpl)33 ClassDefinition (lucee.runtime.db.ClassDefinition)26 Element (org.w3c.dom.Element)9 ApplicationException (lucee.runtime.exp.ApplicationException)8 PageException (lucee.runtime.exp.PageException)6 IOException (java.io.IOException)5 BundleException (org.osgi.framework.BundleException)5 MalformedURLException (java.net.MalformedURLException)4 lucee.aprint (lucee.aprint)4 ClassException (lucee.commons.lang.ClassException)4 SecurityException (lucee.runtime.exp.SecurityException)4 Struct (lucee.runtime.type.Struct)4 InvocationTargetException (java.lang.reflect.InvocationTargetException)3 HashMap (java.util.HashMap)3 LinkedHashMap (java.util.LinkedHashMap)3 Map (java.util.Map)3 Entry (java.util.Map.Entry)3 DumpWriterEntry (lucee.runtime.dump.DumpWriterEntry)3 ExpressionException (lucee.runtime.exp.ExpressionException)3 GatewayEntry (lucee.runtime.gateway.GatewayEntry)3