You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
580 B
20 lines
580 B
package com.eco.plugin.xx.stsxit.controller; |
|
|
|
import com.fr.decision.fun.impl.AbstractControllerRegisterProvider; |
|
import com.fr.plugin.context.PluginContexts; |
|
import com.fr.stable.fun.Authorize; |
|
|
|
@Authorize(callSignKey = "com.eco.plugin.xx.stsxit") |
|
public class ControllerRegisterProvider extends AbstractControllerRegisterProvider { |
|
@Override |
|
public Class<?>[] getControllers() { |
|
|
|
if(!PluginContexts.currentContext().isAvailable()) { |
|
return new Class[]{}; |
|
} |
|
|
|
return new Class[]{ |
|
ControllerSelf.class |
|
}; |
|
} |
|
}
|
|
|