var DataTypeList = "";
var DataTypeName = "";
Project = CreateObject("component","lightbase.applications.#Application.name#.config.ApplicationConfig").init();
// DATA TYPES
DataTypeList = getDistinctObjectList("com.datatype.types");
// Data type (facade)
addSingleton("lightbase.framework.com.datatype.DataType");
addMixinProperty("DataType","DataTypeList",DataTypeList);
// All of the data type singletons
For (ConfigCount = 1; ConfigCount lte listlen(DataTypeList); ConfigCount = ConfigCount + 1)
{
// Get current object name
DataTypeName = ListGetAt(DataTypeList, ConfigCount);
If (FileExistsinApplication("com.datatype.types.#DataTypeName#"))
{addSingleton("lightbase.applications.#Application.Name#.com.datatype.types.#DataTypeName#","#DataTypeName#DataType");}
Else
{addSingleton("lightbase.framework.com.datatype.types.#DataTypeName#","#DataTypeName#DataType");};
// Inject app config and value list service to all data types
addConstructorDependency("#DataTypeName#DataType", "ApplicationConfig");
addMixinDependency("#DataTypeName#DataType", "ValueListService");
// And mix all data types into the data type service
addMixinDependency("DataType", "#DataTypeName#DataType");
};
var ReturnValue = false;
var FilePath = variables.ApplicationDirectoryPath & variables.DirectoryDelimiter & Replace(FileDotPath, ".", variables.DirectoryDelimiter, "all") & ".cfc";
If (FileExists(FilePath))
{ReturnValue = true;};
var ReturnValue = false;
var FilePath = variables.LightBaseDirectoryPath & variables.DirectoryDelimiter & "framework" & variables.DirectoryDelimiter & Replace(FileDotPath, ".", variables.DirectoryDelimiter, "all") & ".cfc";
If (FileExists(FilePath))
{ReturnValue = true;};