|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.compile.spi.work.source.impl.AbstractWorkSource<JndiWork>
net.officefloor.plugin.jndi.work.JndiWorkSource
public class JndiWorkSource
WorkSource to execute Method instances on a JNDI Object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource |
|---|
AbstractWorkSource.SpecificationContext |
| Field Summary | |
|---|---|
static String |
PROPERTY_FACADE_CLASS
Name of property containing the fully qualified class of the facade. |
static String |
PROPERTY_JNDI_NAME
Name of property containing the JNDI name of the Object that is to be the functionality of the Work. |
static String |
PROPERTY_WORK_TYPE
Name of property containing the fully qualified type of the expected JNDI Object. |
| Constructor Summary | |
|---|---|
JndiWorkSource()
|
|
| Method Summary | |
|---|---|
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the WorkSourceSpecification. |
void |
sourceWork(WorkTypeBuilder<JndiWork> workTypeBuilder,
WorkSourceContext context)
Sources the WorkType by populating it via the input
WorkTypeBuilder. |
| Methods inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource |
|---|
getSpecification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_JNDI_NAME
Work.
public static final String PROPERTY_WORK_TYPE
public static final String PROPERTY_FACADE_CLASS
Name of property containing the fully qualified class of the facade.
To simplify using JNDI objects as Work, a facade can be
optionally used to simplify the JNDI object methods for configuring into
OfficeFloor.
Only Method instances of the facade that have a parameter as per
PROPERTY_WORK_TYPE are included. The JNDI Object will however
not appear as a TaskObjectType, as it will be provided from the
Work.
Should the facade have a Method of the same name as a
Method of the JNDI Object, the facade method will overwrite the
JNDI Object Method.
The facade allows for example to:
Task to the JNDI Object
Method parametersMethodMethod instances multiple times to
process lists
| Constructor Detail |
|---|
public JndiWorkSource()
| Method Detail |
|---|
protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSourceWorkSourceSpecification.
loadSpecification in class AbstractWorkSource<JndiWork>context - AbstractWorkSource.SpecificationContext.
public void sourceWork(WorkTypeBuilder<JndiWork> workTypeBuilder,
WorkSourceContext context)
throws Exception
WorkSourceWorkType by populating it via the input
WorkTypeBuilder.
workTypeBuilder - WorkTypeBuilder to be populated with the
type definition of the Work.context - WorkSourceContext to source details to populate the
WorkTypeBuilder.
Exception - If fails to populate the WorkTypeBuilder.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||