1
13693261870
2022-09-16 58d012f11dd34564d81b4eb3a6099eb689876597
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//package commands
//
//import org.crsh.cli.Command
//import org.crsh.cli.Usage
//import org.crsh.command.InvocationContext
//
//import javax.interceptor.InvocationContext
//
//class cas {
//
//    @Usage("Output the current version of the CAS server")
//    @Command
//    def main(InvocationContext context) {
//
//        def beans = context.attributes['spring.beanfactory']
//        def environment = context.attributes['spring.environment']
//
//        def ticketRegistry = beans.getBean("ticketRegistry")
//        def serviceRegistry = beans.getBean("serviceRegistryDao")
//
//        return "CAS version: " + org.apereo.cas.util.CasVersion.getVersion() +
//                "\nTicket registry instance: " + ticketRegistry.getClass().getSimpleName() +
//                "\nService registry instance: " + serviceRegistry.getClass().getSimpleName()
//    }
//
//}