Miscellaneous

MethodBuilders


Archetype.defaultMethodBuilders = [
	"public_private",
	"eventListeners",
	"eventSenders",
	"observe",
	"logger"
];
            

MethodBuilders are facets like components enhancements describes in the MethodBuilders page .

Configuration allow user to set which facets will be used in the application. By default all facets implemented are set. In case of new user created MethodBuilder, they can be added there.

Extensions


Archetype.extensions = {
	js: ["js"],
	css: ["css"],
	html: ["html", "htm", "phtml", "txt"]
}
Archetype.defaultExtensions = {
	js: "js",
	css: "css",
	html: "html"
}
			

Archetype need to evaluate the type of a file with his extensions. Other times it need to use a default extension for a knew type. This two values configure how it does this.

Archetype always use three types of files: JavaScript, CSS and HTML or templates. Both configurations list the three cases.

  • Archetype.extensions: If these extensions are found for a file, the type associated is chosen.
  • Archetype.defaultExtensions: When Archetype just know the type of a file, it will use these extension to define the full filename.

Expert settings:


Archetype.useArchetypeClass = true;
Archetype.useEvents = true;

Archetype.classOverride = true;

Archetype.debugJoiner = false;
Archetype.debugLoadLayers = false;
Archetype.debugLoader = false;
Archetype.debugComponentManager = false;
Archetype.debugResolver = false;
Archetype.debugLoadImplementation = false;

Archetype.concurentXhrLimit = 6;
			

Theses settings are for tuning the Archetype engine. Don't change anything if you are not sure.

  • Archetype.useArchetypeClass: Allows to load Archetype/Class.js.
  • Archetype.useEvents: Allows to load Archetype event mechanism.
  • Archetype.classOverride: Override or not Class object of Prototype with Archetype's one.
  • Archetype.debugJoiner: Add debug logs in the Archetype's Joiner system.
  • Archetype.debugLoadLayers: Add debug logs in the Archetype's loading layers system.
  • Archetype.debugLoader: Add debug logs in the Archetype's loader system.
  • Archetype.debugComponentManager: Add debug logs in the Archetype's Component Manager system.
  • Archetype.debugResolver: Add debug logs in the Archetype's resolver system.
  • Archetype.debugLoadImplementation: Add debug logs in the Archetype's implementation loader system.
  • Archetype.concurentXhrLimit: Number of concurrent XHR allowed by the loader.