Class ExecutiveBuilderImpl<XS extends ExecutiveSource>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.executive.ExecutiveBuilderImpl<XS>
-
- All Implemented Interfaces:
ExecutiveBuilder<XS>
,ExecutiveConfiguration<XS>
public class ExecutiveBuilderImpl<XS extends ExecutiveSource> extends java.lang.Object implements ExecutiveBuilder<XS>, ExecutiveConfiguration<XS>
Implements theExecutiveBuilder
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ExecutiveBuilderImpl(java.lang.Class<XS> executiveSourceClass)
Initiate.ExecutiveBuilderImpl(XS executiveSource)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(java.lang.String name, java.lang.String value)
Specifies a property for theExecutiveSource
.XS
getExecutiveSource()
Obtains theExecutiveSource
instance to use.java.lang.Class<XS>
getExecutiveSourceClass()
Obtains theClass
of theExecutiveSource
.SourceProperties
getProperties()
Obtains theSourceProperties
for initialising theExecutiveSource
.
-
-
-
Constructor Detail
-
ExecutiveBuilderImpl
public ExecutiveBuilderImpl(XS executiveSource)
Initiate.- Parameters:
executiveSource
-ExecutiveSource
.
-
ExecutiveBuilderImpl
public ExecutiveBuilderImpl(java.lang.Class<XS> executiveSourceClass)
Initiate.- Parameters:
executiveSourceClass
-Class
of theExecutiveSource
.
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
Description copied from interface:ExecutiveBuilder
Specifies a property for theExecutiveSource
.- Specified by:
addProperty
in interfaceExecutiveBuilder<XS extends ExecutiveSource>
- Parameters:
name
- Name of property.value
- Value of property.
-
getExecutiveSource
public XS getExecutiveSource()
Description copied from interface:ExecutiveConfiguration
Obtains theExecutiveSource
instance to use.- Specified by:
getExecutiveSource
in interfaceExecutiveConfiguration<XS extends ExecutiveSource>
- Returns:
ExecutiveSource
instance to use. This may benull
and therefore theExecutiveConfiguration.getExecutiveSourceClass()
should be used to obtain theExecutiveSource
.
-
getExecutiveSourceClass
public java.lang.Class<XS> getExecutiveSourceClass()
Description copied from interface:ExecutiveConfiguration
Obtains theClass
of theExecutiveSource
.- Specified by:
getExecutiveSourceClass
in interfaceExecutiveConfiguration<XS extends ExecutiveSource>
- Returns:
Class
of theExecutiveSource
.
-
getProperties
public SourceProperties getProperties()
Description copied from interface:ExecutiveConfiguration
Obtains theSourceProperties
for initialising theExecutiveSource
.- Specified by:
getProperties
in interfaceExecutiveConfiguration<XS extends ExecutiveSource>
- Returns:
SourceProperties
for initialising theExecutiveSource
.
-
-