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 voidaddProperty(java.lang.String name, java.lang.String value)Specifies a property for theExecutiveSource.XSgetExecutiveSource()Obtains theExecutiveSourceinstance to use.java.lang.Class<XS>getExecutiveSourceClass()Obtains theClassof theExecutiveSource.SourcePropertiesgetProperties()Obtains theSourcePropertiesfor initialising theExecutiveSource.
-
-
-
Constructor Detail
-
ExecutiveBuilderImpl
public ExecutiveBuilderImpl(XS executiveSource)
Initiate.- Parameters:
executiveSource-ExecutiveSource.
-
ExecutiveBuilderImpl
public ExecutiveBuilderImpl(java.lang.Class<XS> executiveSourceClass)
Initiate.- Parameters:
executiveSourceClass-Classof theExecutiveSource.
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)Description copied from interface:ExecutiveBuilderSpecifies a property for theExecutiveSource.- Specified by:
addPropertyin interfaceExecutiveBuilder<XS extends ExecutiveSource>- Parameters:
name- Name of property.value- Value of property.
-
getExecutiveSource
public XS getExecutiveSource()
Description copied from interface:ExecutiveConfigurationObtains theExecutiveSourceinstance to use.- Specified by:
getExecutiveSourcein interfaceExecutiveConfiguration<XS extends ExecutiveSource>- Returns:
ExecutiveSourceinstance to use. This may benulland therefore theExecutiveConfiguration.getExecutiveSourceClass()should be used to obtain theExecutiveSource.
-
getExecutiveSourceClass
public java.lang.Class<XS> getExecutiveSourceClass()
Description copied from interface:ExecutiveConfigurationObtains theClassof theExecutiveSource.- Specified by:
getExecutiveSourceClassin interfaceExecutiveConfiguration<XS extends ExecutiveSource>- Returns:
Classof theExecutiveSource.
-
getProperties
public SourceProperties getProperties()
Description copied from interface:ExecutiveConfigurationObtains theSourcePropertiesfor initialising theExecutiveSource.- Specified by:
getPropertiesin interfaceExecutiveConfiguration<XS extends ExecutiveSource>- Returns:
SourcePropertiesfor initialising theExecutiveSource.
-
-