Class AbstractManagedObjectPoolSource
java.lang.Object
net.officefloor.compile.spi.pool.source.impl.AbstractManagedObjectPoolSource
- All Implemented Interfaces:
ManagedObjectPoolSource
public abstract class AbstractManagedObjectPoolSource
extends Object
implements ManagedObjectPoolSource
Abstract
ManagedObjectPoolSource.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContext for theManagedObjectPoolSource.init(ManagedObjectPoolSourceContext).static interfaceContext for thegetSpecification(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the specification for this.init(ManagedObjectPoolSourceContext context) Initialises and configures theManagedObjectPoolSource.protected abstract voidOverridden to load meta-data.protected abstract voidOverridden to load specification.
-
Constructor Details
-
AbstractManagedObjectPoolSource
public AbstractManagedObjectPoolSource()
-
-
Method Details
-
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 Exception Description copied from interface:ManagedObjectPoolSourceInitialises and configures theManagedObjectPoolSource.- Specified by:
initin interfaceManagedObjectPoolSource- Parameters:
context-ManagedObjectPoolSourceContext.- Returns:
ManagedObjectPoolSourceMetaDatafor theManagedObjectPool.- Throws:
Exception- If fails to configure theManagedObjectPoolSource.
-
loadMetaData
protected abstract void loadMetaData(AbstractManagedObjectPoolSource.MetaDataContext context) throws Exception Overridden to load meta-data.- Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-