Fix main entry point for the interpreters

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-09-18 16:01:50 +00:00
parent eb7c7b9bc3
commit 0237cb27c7

View File

@@ -41,8 +41,10 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.util.ApplicationContextHelper;
import org.alfresco.util.ParameterCheck;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;
/**
@@ -64,13 +66,13 @@ public class ConfigAdminInterpreter extends BaseInterpreter
this.transactionService = transactionService;
}
/**
*
* Main entry point.
*/
public static BaseInterpreter getConsoleBean(ApplicationContext context)
public static void main(String[] args)
{
return (ConfigAdminInterpreter)context.getBean("webClientConfigAdminInterpreter");
ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"classpath:alfresco/application-context.xml","classpath:alfresco/web-client-application-context.xml"});
runMain(context, "webClientConfigAdminInterpreter");
}
protected boolean hasAuthority(String username)