Java Code Examples for javax.resource.spi.BootstrapContext#getWorkManager()
The following examples show how to use
javax.resource.spi.BootstrapContext#getWorkManager() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JCABusFactory.java From cxf with Apache License 2.0 | 5 votes |
public WorkManager getWorkManager() { if (getBootstrapContext() instanceof BootstrapContext) { BootstrapContext context = (BootstrapContext)getBootstrapContext(); return context.getWorkManager(); } return null; }
Example 2
Source File: TestResourceAdapter.java From ironjacamar with Eclipse Public License 1.0 | 5 votes |
/** * {@inheritDoc} */ public void start(BootstrapContext ctx) throws ResourceAdapterInternalException { this.bc = (CloneableBootstrapContext) ctx; this.workManager = ctx.getWorkManager(); }
Example 3
Source File: WorkManagerTaskExecutor.java From spring-analysis-note with MIT License | 4 votes |
/** * Specify the JCA BootstrapContext that contains the * WorkManager to delegate to. */ @Override public void setBootstrapContext(BootstrapContext bootstrapContext) { Assert.notNull(bootstrapContext, "BootstrapContext must not be null"); this.workManager = bootstrapContext.getWorkManager(); }
Example 4
Source File: WorkManagerTaskExecutor.java From java-technology-stack with MIT License | 4 votes |
/** * Specify the JCA BootstrapContext that contains the * WorkManager to delegate to. */ @Override public void setBootstrapContext(BootstrapContext bootstrapContext) { Assert.notNull(bootstrapContext, "BootstrapContext must not be null"); this.workManager = bootstrapContext.getWorkManager(); }
Example 5
Source File: WorkManagerTaskExecutor.java From lams with GNU General Public License v2.0 | 4 votes |
/** * Specify the JCA BootstrapContext that contains the * WorkManager to delegate to. */ @Override public void setBootstrapContext(BootstrapContext bootstrapContext) { Assert.notNull(bootstrapContext, "BootstrapContext must not be null"); this.workManager = bootstrapContext.getWorkManager(); }
Example 6
Source File: WorkManagerTaskExecutor.java From spring4-understanding with Apache License 2.0 | 4 votes |
/** * Specify the JCA BootstrapContext that contains the * WorkManager to delegate to. */ @Override public void setBootstrapContext(BootstrapContext bootstrapContext) { Assert.notNull(bootstrapContext, "BootstrapContext must not be null"); this.workManager = bootstrapContext.getWorkManager(); }
Example 7
Source File: WorkResourceAdapter.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * This is called when a resource adapter instance is bootstrapped. * * @param ctx A bootstrap context containing references * @throws ResourceAdapterInternalException indicates bootstrap failure. */ public void start(BootstrapContext ctx) throws ResourceAdapterInternalException { this.workManager = ctx.getWorkManager(); }