net.officefloor.compile.spi.work.source.impl
Class AbstractWorkSource<W extends Work>

java.lang.Object
  extended by net.officefloor.compile.spi.work.source.impl.AbstractWorkSource<W>
All Implemented Interfaces:
WorkSource<W>
Direct Known Subclasses:
AutoWireEscalationCauseRouteWorkSource, ClassWorkSource, GwtServiceWorkSource, HttpFileFactoryWorkSource, HttpFileSenderWorkSource, HttpFileWorkSource, HttpFileWriterWorkSource, HttpParametersLoaderWorkSource, HttpResponseSenderWorkSource, HttpRouteWorkSource, HttpSecurityWorkSource, HttpServletWorkSource, HttpTemplateArrayIteratorWorkSource, HttpTemplateInitialWorkSource, HttpTemplateWorkSource, HttpUrlContinuationWorkSource, JeeStockPricePublisherWorkSource, JndiWorkSource, JspWorkSource, PublishWorkSource, ServletContainerResourceSectionSource.ServletContainerResourceWorkSource, ServletRouteWorkSource

public abstract class AbstractWorkSource<W extends Work>
extends Object
implements WorkSource<W>

Abstract WorkSource.

Author:
Daniel Sagenschneider

Nested Class Summary
protected static interface AbstractWorkSource.SpecificationContext
          Context for defining the specification.
 
Constructor Summary
AbstractWorkSource()
           
 
Method Summary
 WorkSourceSpecification getSpecification()
           Obtains the WorkSourceSpecification for this WorkSource.
protected abstract  void loadSpecification(AbstractWorkSource.SpecificationContext context)
          Loads the WorkSourceSpecification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.officefloor.compile.spi.work.source.WorkSource
sourceWork
 

Constructor Detail

AbstractWorkSource

public AbstractWorkSource()
Method Detail

getSpecification

public WorkSourceSpecification getSpecification()
Description copied from interface: WorkSource

Obtains the WorkSourceSpecification for this WorkSource.

This enables the WorkSourceContext to be populated with the necessary details as per this WorkSourceSpecification in loading the WorkType.

Specified by:
getSpecification in interface WorkSource<W extends Work>
Returns:
WorkSourceSpecification.

loadSpecification

protected abstract void loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the WorkSourceSpecification.

Parameters:
context - AbstractWorkSource.SpecificationContext.


Copyright © 2005-2013. All Rights Reserved.