@Singleton public final class MRulesInjector extends Object
MRulesInject
Annotation.Constructor and Description |
---|
MRulesInjector()
Public constructor in order to be instantiated by CDI framework.
|
Modifier and Type | Method and Description |
---|---|
static javax.rules.RuleSession |
createRuleSession(javax.enterprise.inject.spi.InjectionPoint ip)
Builds a session from CDI, stateless or stateful depending on parameter.
|
static IMRuleExecutionSet |
createRuleSet(javax.enterprise.inject.spi.InjectionPoint ip)
Builds a RuleSet from CDI.
|
static javax.rules.StatefulRuleSession |
createStatefullRuleSession(javax.enterprise.inject.spi.InjectionPoint ip)
Builds a stateful session from CDI.
|
static javax.rules.StatelessRuleSession |
createStatelessRuleSession(javax.enterprise.inject.spi.InjectionPoint ip)
Builds a stateless session from CDI.
|
public MRulesInjector()
@Produces public static IMRuleExecutionSet createRuleSet(javax.enterprise.inject.spi.InjectionPoint ip) throws MConfigurationException
MConfigurationException
@Produces public static javax.rules.StatelessRuleSession createStatelessRuleSession(javax.enterprise.inject.spi.InjectionPoint ip) throws MRuleSessionTypeUnsupportedException, MRuleSessionCreateException, MConfigurationException
@Produces public static javax.rules.StatefulRuleSession createStatefullRuleSession(javax.enterprise.inject.spi.InjectionPoint ip) throws MRuleSessionTypeUnsupportedException, MRuleSessionCreateException, MConfigurationException
@Produces public static javax.rules.RuleSession createRuleSession(javax.enterprise.inject.spi.InjectionPoint ip) throws MRuleSessionTypeUnsupportedException, MRuleSessionCreateException, MConfigurationException