Class ClassGovernanceSource
- java.lang.Object
-
- net.officefloor.compile.spi.governance.source.impl.AbstractGovernanceSource<java.lang.Object,Indexed>
-
- net.officefloor.plugin.governance.clazz.ClassGovernanceSource
-
- All Implemented Interfaces:
GovernanceSourceService<java.lang.Object,Indexed,ClassGovernanceSource>
,GovernanceSourceServiceFactory
,GovernanceSource<java.lang.Object,Indexed>
,ServiceFactory<GovernanceSourceService<?,?,?>>
public class ClassGovernanceSource extends AbstractGovernanceSource<java.lang.Object,Indexed> implements GovernanceSourceService<java.lang.Object,Indexed,ClassGovernanceSource>, GovernanceSourceServiceFactory
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.governance.source.impl.AbstractGovernanceSource
AbstractGovernanceSource.Labeller, AbstractGovernanceSource.MetaDataContext<I,F extends java.lang.Enum<F>>, AbstractGovernanceSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_NAME_PROPERTY_NAME
Property name providing theClass
name.
-
Constructor Summary
Constructors Constructor Description ClassGovernanceSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernanceSourceService<?,?,?>
createService(ServiceContext context)
Creates the service.java.lang.String
getGovernanceSourceAlias()
Obtains the alias for theGovernanceSource
Class
.java.lang.Class<ClassGovernanceSource>
getGovernanceSourceClass()
Obtains theGovernanceSource
Class
.protected void
loadMetaData(AbstractGovernanceSource.MetaDataContext<java.lang.Object,Indexed> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractGovernanceSource.SpecificationContext context)
Overridden to load specification.-
Methods inherited from class net.officefloor.compile.spi.governance.source.impl.AbstractGovernanceSource
getSpecification, init
-
-
-
-
Field Detail
-
CLASS_NAME_PROPERTY_NAME
public static final java.lang.String CLASS_NAME_PROPERTY_NAME
Property name providing theClass
name.- See Also:
- Constant Field Values
-
-
Method Detail
-
createService
public GovernanceSourceService<?,?,?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<GovernanceSourceService<?,?,?>>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
getGovernanceSourceAlias
public java.lang.String getGovernanceSourceAlias()
Description copied from interface:GovernanceSourceService
Obtains the alias for theGovernanceSource
Class
.- Specified by:
getGovernanceSourceAlias
in interfaceGovernanceSourceService<java.lang.Object,Indexed,ClassGovernanceSource>
- Returns:
- Alias for the
GovernanceSource
Class
.
-
getGovernanceSourceClass
public java.lang.Class<ClassGovernanceSource> getGovernanceSourceClass()
Description copied from interface:GovernanceSourceService
Obtains theGovernanceSource
Class
.- Specified by:
getGovernanceSourceClass
in interfaceGovernanceSourceService<java.lang.Object,Indexed,ClassGovernanceSource>
- Returns:
GovernanceSource
Class
.
-
loadSpecification
protected void loadSpecification(AbstractGovernanceSource.SpecificationContext context)
Description copied from class:AbstractGovernanceSource
Overridden to load specification.- Specified by:
loadSpecification
in classAbstractGovernanceSource<java.lang.Object,Indexed>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractGovernanceSource.MetaDataContext<java.lang.Object,Indexed> context) throws java.lang.Exception
Description copied from class:AbstractGovernanceSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractGovernanceSource<java.lang.Object,Indexed>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
-