Formatting fixes
This commit is contained in:
parent
8c4e0ed609
commit
b49b50449e
1 changed files with 65 additions and 72 deletions
|
@ -485,7 +485,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
if ( classMapping.containsKey("root.factory.class") && classMapping.containsKey("root.factory.method") ) {
|
if ( classMapping.containsKey("root.factory.class") && classMapping.containsKey("root.factory.method") ) {
|
||||||
Class c = Class.forName( classMapping.getProperty("root.factory.class") );
|
Class c = Class.forName( classMapping.getProperty("root.factory.class") );
|
||||||
Method m = c.getMethod( classMapping.getProperty("root.factory.method"), null );
|
Method m = c.getMethod( classMapping.getProperty("root.factory.method"), null );
|
||||||
rootObject = m.invoke(c,null);
|
rootObject = m.invoke(c, null);
|
||||||
} else {
|
} else {
|
||||||
Class c = Class.forName( classMapping.getProperty("root") );
|
Class c = Class.forName( classMapping.getProperty("root") );
|
||||||
rootObject = c.newInstance();
|
rootObject = c.newInstance();
|
||||||
|
@ -838,7 +838,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
// we use the classes from helma.doc-pacakge for introspection.
|
// we use the classes from helma.doc-pacakge for introspection.
|
||||||
// the first time an url like /appname/api/ is parsed, the application is read again
|
// the first time an url like /appname/api/ is parsed, the application is read again
|
||||||
// parsed for comments and exposed as an IPathElement
|
// parsed for comments and exposed as an IPathElement
|
||||||
if ( name.equals("api") ) {
|
if (name.equals("api")) {
|
||||||
if ( docApp==null ) {
|
if ( docApp==null ) {
|
||||||
try {
|
try {
|
||||||
docApp = new DocApplication( this.name,appDir.toString() );
|
docApp = new DocApplication( this.name,appDir.toString() );
|
||||||
|
@ -1172,15 +1172,6 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
xmlrpcAccess.checkAccess (proto, method);
|
xmlrpcAccess.checkAccess (proto, method);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Decides whether subnode condition should be checked for cached nodes. This is on by default
|
|
||||||
* and can be switched off by adding "subnodeChecking=false" in the app.properties file.
|
|
||||||
* It is recommended to leave it on except you suffer severe performance problems and know what you do.
|
|
||||||
*/
|
|
||||||
/* public boolean doesSubnodeChecking () {
|
|
||||||
return checkSubnodes;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1239,7 +1230,9 @@ class XmlRpcAccess {
|
||||||
/*
|
/*
|
||||||
* create internal representation of XML-RPC-Permissions. They're encoded in the app property
|
* create internal representation of XML-RPC-Permissions. They're encoded in the app property
|
||||||
* file like this:
|
* file like this:
|
||||||
|
*
|
||||||
* xmlrpcAccess = root.sayHello, story.countMessages, user.login
|
* xmlrpcAccess = root.sayHello, story.countMessages, user.login
|
||||||
|
*
|
||||||
* i.e. a prototype.method entry for each function callable via XML-RPC.
|
* i.e. a prototype.method entry for each function callable via XML-RPC.
|
||||||
*/
|
*/
|
||||||
private void init () {
|
private void init () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue