4 ms·
> Not a single public static method main?
by saagarjha 7y ago
> Not a single public static method
main?
- chrisjc 7y agoI think this is the doesn't-need-to-be-said exception.
- deleted 7y ago[deleted]
- clhodapp 7y agoIt looks like the framework user or the servlet engine provides the main method.
- klez 7y agoI think it's safe to assume "no public static interface to the framework". The rest are hidden implementation details. It's like saying that a program in Java can be completely object oriented. Of course it can't because the innards still contain pieces of procedural code and they still use primitives which may not be actual instances of objects. What counts is how it presents itself on the outside.
- mdaniel 7y agoUnknown if this framework adheres to it, but the JavaEE standard allows one to deploy apps that don't contain a main method, and in fact can run in a security restricted environment that prohibits reading properties, environment variables, and a lot more. So that's a long way of saying that if it doesn't need a main method unless they're trying to deploy their own webserver, too