Class ClassAdministrationSource
- java.lang.Object
-
- net.officefloor.compile.spi.administration.source.impl.AbstractAdministrationSource<java.lang.Object,Indexed,Indexed>
-
- net.officefloor.plugin.administration.clazz.ClassAdministrationSource
-
- All Implemented Interfaces:
AdministrationSourceService<java.lang.Object,Indexed,Indexed,ClassAdministrationSource>
,AdministrationSourceServiceFactory
,AdministrationSource<java.lang.Object,Indexed,Indexed>
,ServiceFactory<AdministrationSourceService<?,?,?,?>>
public class ClassAdministrationSource extends AbstractAdministrationSource<java.lang.Object,Indexed,Indexed> implements AdministrationSourceService<java.lang.Object,Indexed,Indexed,ClassAdministrationSource>, AdministrationSourceServiceFactory
AdministrationSource
that delegates toObject
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.administration.source.impl.AbstractAdministrationSource
AbstractAdministrationSource.Labeller, AbstractAdministrationSource.MetaDataContext<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>, AbstractAdministrationSource.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 ClassAdministrationSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdministrationSourceService<?,?,?,?>
createService(ServiceContext context)
Creates the service.java.lang.String
getAdministrationSourceAlias()
Obtains the alias for theAdministrationSource
Class
.java.lang.Class<ClassAdministrationSource>
getAdministrationSourceClass()
Obtains theAdministrationSource
Class
.protected void
loadMetaData(AbstractAdministrationSource.MetaDataContext<java.lang.Object,Indexed,Indexed> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractAdministrationSource.SpecificationContext context)
Overridden to load specification.-
Methods inherited from class net.officefloor.compile.spi.administration.source.impl.AbstractAdministrationSource
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 AdministrationSourceService<?,?,?,?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<AdministrationSourceService<?,?,?,?>>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
getAdministrationSourceAlias
public java.lang.String getAdministrationSourceAlias()
Description copied from interface:AdministrationSourceService
Obtains the alias for theAdministrationSource
Class
.- Specified by:
getAdministrationSourceAlias
in interfaceAdministrationSourceService<java.lang.Object,Indexed,Indexed,ClassAdministrationSource>
- Returns:
- Alias for the
AdministrationSource
Class
.
-
getAdministrationSourceClass
public java.lang.Class<ClassAdministrationSource> getAdministrationSourceClass()
Description copied from interface:AdministrationSourceService
Obtains theAdministrationSource
Class
.- Specified by:
getAdministrationSourceClass
in interfaceAdministrationSourceService<java.lang.Object,Indexed,Indexed,ClassAdministrationSource>
- Returns:
AdministrationSource
Class
.
-
loadSpecification
protected void loadSpecification(AbstractAdministrationSource.SpecificationContext context)
Description copied from class:AbstractAdministrationSource
Overridden to load specification.- Specified by:
loadSpecification
in classAbstractAdministrationSource<java.lang.Object,Indexed,Indexed>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAdministrationSource.MetaDataContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Exception
Description copied from class:AbstractAdministrationSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractAdministrationSource<java.lang.Object,Indexed,Indexed>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
-