本文整理了Java中javax.ejb.Local.<init>()
方法的一些代码示例,展示了Local.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Local.<init>()
方法的具体详情如下:
包路径:javax.ejb.Local
类名称:Local
方法名:<init>
暂无
代码示例来源:origin: javaee-samples/javaee7-samples
/**
* @author Arun Gupta
*/
@Local
public interface Cart {
public void addItem(String item);
public void removeItem(String item);
public void purchase();
public List<String> getItems();
}
代码示例来源:origin: javaee-samples/javaee7-samples
/**
* @author Arun Gupta
*/
@Local
public interface Account {
public String withdraw(float amount);
public String deposit(float amount);
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface ExecutorServiceEJB extends ExecutorService {
Executor getExecutor();
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface UserTaskServiceEJBLocal extends UserTaskService {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface DeploymentServiceEJBLocal extends DeploymentService, ListenerSupport {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface ProcessInstanceMigrationServiceEJBLocal extends ProcessInstanceMigrationService {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface RuntimeDataServiceEJBLocal extends RuntimeDataService, DeploymentEventListener {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface ProcessServiceEJBLocal extends ProcessService {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface QueryServiceEJBLocal extends QueryService {
}
代码示例来源:origin: kiegroup/jbpm
@Local
public interface DefinitionServiceEJBLocal extends DefinitionService, DeploymentEventListener {
}
代码示例来源:origin: javaee-samples/javaee7-samples
@Local(MyManagedScheduledBatch.class)
public class MyManagedScheduledBatchBean implements MyManagedScheduledBatch {
代码示例来源:origin: spring-projects/spring-framework
/**
* EJB implementation of {@link TestEntityDao} which declares transaction
* semantics for {@link #incrementCount(String)} with
* {@link TransactionAttributeType#REQUIRED}.
*
* @author Sam Brannen
* @author Xavier Detant
* @since 4.0.1
* @see RequiresNewEjbTxTestEntityDao
*/
@Stateless
@Local(TestEntityDao.class)
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class RequiredEjbTxTestEntityDao extends AbstractEjbTxTestEntityDao {
@Override
public int getCount(String name) {
return super.getCountInternal(name);
}
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@Override
public int incrementCount(String name) {
return super.incrementCountInternal(name);
}
}
代码示例来源:origin: spring-projects/spring-framework
/**
* EJB implementation of {@link TestEntityDao} which declares transaction
* semantics for {@link #incrementCount(String)} with
* {@link TransactionAttributeType#REQUIRES_NEW}.
*
* @author Sam Brannen
* @author Xavier Detant
* @since 4.0.1
* @see RequiredEjbTxTestEntityDao
*/
@Stateless
@Local(TestEntityDao.class)
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class RequiresNewEjbTxTestEntityDao extends AbstractEjbTxTestEntityDao {
@Override
public int getCount(String name) {
return super.getCountInternal(name);
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
@Override
public int incrementCount(String name) {
return super.incrementCountInternal(name);
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* A SLSB with a local business interface
*
* @author Daniel Meyer
*
*/
@Stateless
@Local(BusinessInterface.class)
public class LocalSLSBean implements BusinessInterface {
public boolean doBusiness() {
return true;
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* A SLSB with a local business interface
*
* @author Daniel Meyer
*
*/
@Stateless
@Local(StartProcessInterface.class)
public class StartProcessSLSB implements StartProcessInterface {
public boolean doStartProcess() {
BpmPlatform.getDefaultProcessEngine()
.getRuntimeService()
.startProcessInstanceByKey("callbackProcess");
return true;
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
@Stateless
@Remote(InvocationCounterService.class)
@Local(InvocationCounterServiceLocal.class)
public class InvocationCounterServiceBean implements InvocationCounterService, InvocationCounterServiceLocal {
@Inject
private InvocationCounter invocationCounter;
public int getNumOfInvocations() {
return invocationCounter.incrementAndGet();
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* A SingletonBean with a local business interface
*
* @author Daniel Meyer
*
*/
@Singleton
@Local(BusinessInterface.class)
public class LocalSingletonBean implements BusinessInterface {
public boolean doBusiness() {
return true;
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* A SFSB with a local business interface
*
* @author Daniel Meyer
*
*/
@Stateful
@Local(BusinessInterface.class)
public class LocalSFSBean implements BusinessInterface {
public boolean doBusiness() {
return true;
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* @author Tassilo Weidner
*/
@Singleton
@Startup
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@ProcessApplication(deploymentDescriptors = {"deployment-descriptor-with-custom-filename.xml"})
@Local(ProcessApplicationInterface.class)
public class AnnotatedEjbPa extends EjbProcessApplication {
@PostConstruct
public void start() {
deploy();
}
@PreDestroy
public void stop() {
undeploy();
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Custom {@link EjbProcessApplication} with PA lifecycle callbacks
*
* @author Daniel Meyer
*
*/
@Singleton
@Startup
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@ProcessApplication
@Local(ProcessApplicationInterface.class)
public class CustomEjbProcessApplication extends EjbProcessApplication {
@PostDeploy
public void postDeploy(ProcessEngine processEngine) {
Assert.assertNotNull(processEngine);
}
@PreUndeploy
public void preUnDeploy(ProcessEngine processEngine) {
Assert.assertNotNull(processEngine);
}
}
内容来源于网络,如有侵权,请联系作者删除!