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 1747086061
commit 0d7da3e6e6
4 changed files with 21 additions and 20 deletions

View File

@@ -67,7 +67,6 @@ import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.util.GUID;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.core.io.ClassPathResource;
@@ -219,11 +218,11 @@ public class WorkflowInterpreter extends BaseInterpreter
}
/**
*
* Main entry point.
*/
public static BaseInterpreter getConsoleBean(ApplicationContext context)
public static void main(String[] args)
{
return (WorkflowInterpreter)context.getBean("workflowInterpreter");
runMain("workflowInterpreter");
}
protected boolean hasAuthority(String username)