Class OfficeFrame
- java.lang.Object
-
- net.officefloor.frame.api.OfficeFrame
-
- Direct Known Subclasses:
OfficeFrameImpl
public abstract class OfficeFrame extends java.lang.ObjectOffice Frame to create the
OfficeFloor.This is the starting point to use the framework.
- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIMPLEMENTATION_CLASS_PROPERTY_NAMEstatic java.lang.StringLOG_SOURCE_CLASS_PROPERTY_NAMESystem.getProperty(String)that flags to infer the sourceClassundertaking the logging.
-
Constructor Summary
Constructors Constructor Description OfficeFrame()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static OfficeFloorBuildercreateOfficeFloorBuilder()Convenience method to create a singleOfficeFloorBuilder, as there is typically only oneOfficeFloorper JVM.abstract OfficeFloorBuildercreateOfficeFloorBuilder(java.lang.String officeFloorName)Obtains theOfficeFloorBuilder.static OfficeFramegetInstance()Obtains the the Singleton instance of theOfficeFrame.static java.util.logging.LoggergetLogger(java.lang.String loggerName)Obtains theLogger.static voidsetInstance(OfficeFrame singleton)Specifies theOfficeFrameimplementation.
-
-
-
Field Detail
-
IMPLEMENTATION_CLASS_PROPERTY_NAME
public static final java.lang.String IMPLEMENTATION_CLASS_PROPERTY_NAME
System.getProperty(String)that allows specifying theOfficeFrameimplementationClass.Should this not be specified the default
OfficeFrameImplwill be used.Note: it is anticipated that
OfficeFrameImplwill always be used.- See Also:
- Constant Field Values
-
LOG_SOURCE_CLASS_PROPERTY_NAME
public static final java.lang.String LOG_SOURCE_CLASS_PROPERTY_NAME
System.getProperty(String)that flags to infer the sourceClassundertaking the logging.By default the
Loggerinstances will specify anullsourceClassname so that theLoggername is used by theSimpleFormatter. This will then result inLogRecordinstances formatted with theLoggername.Flagging this
truewill allow the sourceClassname to be inferred. However, aFormatterwill likely need to be configured to indicate the specificLoggername to distinguish the configured instance.- See Also:
- Constant Field Values
-
-
Method Detail
-
setInstance
public static final void setInstance(OfficeFrame singleton)
Specifies theOfficeFrameimplementation. Allows for overriding the default implementation.- Parameters:
singleton-OfficeFrameimplementation.
-
getInstance
public static final OfficeFrame getInstance()
Obtains the the Singleton instance of theOfficeFrame.- Returns:
- Singleton
OfficeFrame.
-
createOfficeFloorBuilder
public static final OfficeFloorBuilder createOfficeFloorBuilder()
Convenience method to create a single
OfficeFloorBuilder, as there is typically only oneOfficeFloorper JVM.If more than one
OfficeFlooris required, use theOfficeFramereturned fromgetInstance().- Returns:
OfficeFloorBuilder.
-
getLogger
public static java.util.logging.Logger getLogger(java.lang.String loggerName)
Obtains theLogger.- Parameters:
loggerName- Name ofLogger.- Returns:
Logger.
-
createOfficeFloorBuilder
public abstract OfficeFloorBuilder createOfficeFloorBuilder(java.lang.String officeFloorName)
Obtains theOfficeFloorBuilder.- Parameters:
officeFloorName- Name of theOfficeFloor.- Returns:
OfficeFloorBuilder.
-
-