I know some name of salesforce provided namespace like System, Database, ApexClass, Messaging.
Can anybody give me the list of all Namespace in Salesforce?
There's a list of them in the Apex Developers Guide.
ApexPages Namespace
Approval Namespace
Auth Namespace
Canvas Namespace
ChatterAnswers Namespace
ConnectApi Namespace
Database Namespace
Dom Namespace
Flow Namespace
KbManagement Namespace
Messaging Namespace
Process Namespace
QuickAction Namespace
Reports Namespace
Schema Namespace
Site Namespace
Support Namespace
System Namespace
Related
i am using swig to gen c# code, but i don't know how to add a namespace to the output file,
such as:
using System.Text;
using System.IO;
my English is poor, can anyone understand?
In a thrift file, when I have a multiword namespace such as someAwesomeNamespace, what is the naming conventions to make this as a namespace in a .thrift file?
namespace rb someAwesomeNamespace
namespace rb SomeAwesomeNamespace
namespace rb some_awesome_namespace
namespace rb some-awesome-namespace
Short answer: There is none. Use whatever fits your needs (and what the syntax allows).
When I set a context-root in weblogic.xml for my application, what is the default namespace for package in struts2?
ex:
I set <context-root>/home/app/exec</context-root> and I access my app with the following uri: localhost:8081/home/app/exec/index.html insted of localhost:8081/NameOfMyApp/index.html
In the other hand I Know that in Struts2 action namespace map to folder structure.
Example on the following link: https://www.mkyong.com/struts2/struts-2-namespace-configuration-example-and-explanation/
What is the correct namespace for the situation in case that ServletContext is not the name of my app but is the context-root?
Namespace is the part that is calculated after the context path and before the action name. On the other hand a namespace is an attribute of the package that holds the actions belonging that namespace. A default action mapper is using both attributes to find the action config corresponding the namespace and action name.
For detailed explanation of default action mapper you can read javadocs DefaultActionMapper.
You can read more about action configuration and ActionMapper on the Struts docs site.
You should also know that the action mapper returns ActionMapping. However, to execute an action requires ActionConfig which is determined by the Struts using run-time configuration.
My C++ class:
class Base {
public:
virtual void foo(int);
};
In the python module, I have a class that derives from above and overrides foo.
class PyDerived(Base):
...
def foo(self):
...
Then I create an object of this derived class using a factory method that is defined in python module like this:
def createObject():
m = PyDerived()
return m
With this PyObject in C++ code, I want to call foo and I want foo in python module to be executed. Is this possible? If so how?
(I already tried calling virtual methods from python which dispatch the actual call to a C++ method, but that does not match my requirements)
Yes, you need to enable the SWIG "directors" feature for the class Base containing the virtual method. You can read about it in the documentation here.
The documentation will tell you that you need to add two things to the SWIG interface file:
At the very beginning, edit the %module directive to enable the use of directors at all:
%module(directors="1") your_modulename
Before the declaration of the class Base or the corresponding %include directive, put the following to enable the directors feature for that class:
%feature("director") Base;
For example "Using System.Console". Here "System" is the namespace and "Console" is the class"
Okay that makes sence but what about directives such as "System.IO.Compression".
In the above example would "Compression" be the method?
In visual studio projects why does the IDE add using system; and then using system.console?
Would using system automatically call all the classes in the namespace anyway making the using system.console redundant?
System, System.Console, System.IO, System.IO.Compression are all namespaces.
namespace System
{
class Foo1{}
namespace Console
{
}
namespace IO
{
class Foo2{}
namespace Compression{}
}
}
Compression namespace is nested inside IO, and all nested inside System
If you Using System, you only can access class Foo1(), in the other words, Using... only access class and variable, not the namespace that nested inside
***EDIT: This article defines quite clearly about namespace: https://msdn.microsoft.com/en-us/library/dfb3cx8s(v=vs.140).aspx