Search in sources :

Example 1 with UDFAddProperty

use of lucee.runtime.type.UDFAddProperty in project Lucee by lucee.

the class PropertyFactory method addAdd.

public static void addAdd(ComponentImpl comp, Property prop) throws ApplicationException {
    Member m = comp.getMember(Component.ACCESS_PRIVATE, KeyImpl.getInstance("add" + getSingularName(prop)), true, false);
    if (!(m instanceof UDF)) {
        UDF udf = new UDFAddProperty(comp, prop);
        comp.registerUDF(KeyImpl.init(udf.getFunctionName()), udf);
    }
}
Also used : UDFAddProperty(lucee.runtime.type.UDFAddProperty) UDF(lucee.runtime.type.UDF) Member(lucee.runtime.component.Member)

Aggregations

Member (lucee.runtime.component.Member)1 UDF (lucee.runtime.type.UDF)1 UDFAddProperty (lucee.runtime.type.UDFAddProperty)1