deltaspike

Deltaspike + Quartz + CronExpressions from custom property file

只谈情不闲聊 提交于 2019-12-13 06:45:13
问题 I've achieved configuring CronExpression from a propery file, but this property file is apache-deltaspike.properties, which is inside the .jar file. I need to take the cron expression from my custom config file: import org.apache.deltaspike.core.api.config.PropertyFileConfig; public class myOwnPropertyFileConfig implements PropertyFileConfig { private static final long serialVersionUID = 1L; @Override public String getPropertyFileName() { return "cfg/myOwnPropFile.properties"; } @Override

Deltaspike and @Stateless Bean

↘锁芯ラ 提交于 2019-12-10 10:23:22
问题 I want to secure my "Stateless" EJb with the DeltaSpike-API. @Stateless @Remote(UserServiceRemote.class) public class UserService implements UserServiceRemote At method level i have a custom annotation "Support" @Support public void doSomething() {} Therefore i wrote a custom annotation "@Support": @Retention(value = RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD }) @Documented @SecurityBindingType public @interface Support { My custom Authorizer looks like: @Secures