Class AbstractManagedObjectPoolSource
- java.lang.Object
-
- net.officefloor.compile.spi.pool.source.impl.AbstractManagedObjectPoolSource
-
- All Implemented Interfaces:
ManagedObjectPoolSource
public abstract class AbstractManagedObjectPoolSource extends java.lang.Object implements ManagedObjectPoolSource
AbstractManagedObjectPoolSource.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractManagedObjectPoolSource.MetaDataContextContext for theManagedObjectPoolSource.init(ManagedObjectPoolSourceContext).static interfaceAbstractManagedObjectPoolSource.SpecificationContextContext for thegetSpecification().
-
Constructor Summary
Constructors Constructor Description AbstractManagedObjectPoolSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ManagedObjectPoolSourceSpecificationgetSpecification()Obtains the specification for this.ManagedObjectPoolSourceMetaDatainit(ManagedObjectPoolSourceContext context)Initialises and configures theManagedObjectPoolSource.protected abstract voidloadMetaData(AbstractManagedObjectPoolSource.MetaDataContext context)Overridden to load meta-data.protected abstract voidloadSpecification(AbstractManagedObjectPoolSource.SpecificationContext context)Overridden to load specification.
-
-
-
Method Detail
-
getSpecification
public ManagedObjectPoolSourceSpecification getSpecification()
Description copied from interface:ManagedObjectPoolSourceObtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
- Specified by:
getSpecificationin interfaceManagedObjectPoolSource- Returns:
- Specification of this.
-
loadSpecification
protected abstract void loadSpecification(AbstractManagedObjectPoolSource.SpecificationContext context)
Overridden to load specification.- Parameters:
context- Specifications.
-
init
public ManagedObjectPoolSourceMetaData init(ManagedObjectPoolSourceContext context) throws java.lang.Exception
Description copied from interface:ManagedObjectPoolSourceInitialises and configures theManagedObjectPoolSource.- Specified by:
initin interfaceManagedObjectPoolSource- Parameters:
context-ManagedObjectPoolSourceContext.- Returns:
ManagedObjectPoolSourceMetaDatafor theManagedObjectPool.- Throws:
java.lang.Exception- If fails to configure theManagedObjectPoolSource.
-
loadMetaData
protected abstract void loadMetaData(AbstractManagedObjectPoolSource.MetaDataContext context) throws java.lang.Exception
Overridden to load meta-data.- Parameters:
context- Meta-data.- Throws:
java.lang.Exception- If fails to load the meta-data.
-
-