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 interface
AbstractManagedObjectPoolSource.MetaDataContext
Context for theManagedObjectPoolSource.init(ManagedObjectPoolSourceContext)
.static interface
AbstractManagedObjectPoolSource.SpecificationContext
Context for thegetSpecification()
.
-
Constructor Summary
Constructors Constructor Description AbstractManagedObjectPoolSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ManagedObjectPoolSourceSpecification
getSpecification()
Obtains the specification for this.ManagedObjectPoolSourceMetaData
init(ManagedObjectPoolSourceContext context)
Initialises and configures theManagedObjectPoolSource
.protected abstract void
loadMetaData(AbstractManagedObjectPoolSource.MetaDataContext context)
Overridden to load meta-data.protected abstract void
loadSpecification(AbstractManagedObjectPoolSource.SpecificationContext context)
Overridden to load specification.
-
-
-
Method Detail
-
getSpecification
public ManagedObjectPoolSourceSpecification getSpecification()
Description copied from interface:ManagedObjectPoolSource
Obtains 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:
getSpecification
in 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:ManagedObjectPoolSource
Initialises and configures theManagedObjectPoolSource
.- Specified by:
init
in interfaceManagedObjectPoolSource
- Parameters:
context
-ManagedObjectPoolSourceContext
.- Returns:
ManagedObjectPoolSourceMetaData
for 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.
-
-