Package net.officefloor.web.compile
Class CompileWebContextImpl
java.lang.Object
net.officefloor.web.compile.CompileWebContextImpl
- All Implemented Interfaces:
CompileOfficeContext,CompileWebContext
CompileWebContext implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionCompileWebContextImpl(CompileOfficeContext officeContext, WebArchitect webArchitect) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionaddManagedObject(String managedObjectName, Class<?> managedObjectClass, ManagedObjectScope scope) Adds anOfficeManagedObjectforClassManagedObjectSource.addSection(String sectionName, Class<?> sectionClass) Adds anOfficeSectionforClassSectionSource.Obtains theOfficeArchitect.Obtains theOfficeSection.Obtains theOfficeSourceContext.Obtains theWebArchitect.Convenience method to link a URI to theservicemethod of theClass.Convenience method to link a URL to theservicemethod of theClass.overrideSection(Class<? extends SectionSource> sectionSourceClass, String sectionLocation) Overrides the defaultOfficeSection.<T> voidListens to a variable.
-
Constructor Details
-
CompileWebContextImpl
Instantiate.- Parameters:
officeContext-CompileOfficeContext.webArchitect-WebArchitect.
-
-
Method Details
-
getWebArchitect
Description copied from interface:CompileWebContextObtains theWebArchitect.- Specified by:
getWebArchitectin interfaceCompileWebContext- Returns:
WebArchitect.
-
getOfficeArchitect
Description copied from interface:CompileOfficeContextObtains theOfficeArchitect.- Specified by:
getOfficeArchitectin interfaceCompileOfficeContext- Returns:
OfficeArchitect.
-
getOfficeSourceContext
Description copied from interface:CompileOfficeContextObtains theOfficeSourceContext.- Specified by:
getOfficeSourceContextin interfaceCompileOfficeContext- Returns:
OfficeSourceContext.
-
addManagedObject
public OfficeManagedObject addManagedObject(String managedObjectName, Class<?> managedObjectClass, ManagedObjectScope scope) Description copied from interface:CompileOfficeContextAdds anOfficeManagedObjectforClassManagedObjectSource.- Specified by:
addManagedObjectin interfaceCompileOfficeContext- Parameters:
managedObjectName- Name of theOfficeManagedObject.managedObjectClass-Classfor theClassManagedObjectSource.scope-ManagedObjectScope.- Returns:
OfficeManagedObject.
-
addSection
Description copied from interface:CompileOfficeContextAdds anOfficeSectionforClassSectionSource.- Specified by:
addSectionin interfaceCompileOfficeContext- Parameters:
sectionName- Name of theOfficeSection.sectionClass-Classfor theClassSectionSource.- Returns:
OfficeSection.
-
variable
Description copied from interface:CompileOfficeContextListens to a variable.- Specified by:
variablein interfaceCompileOfficeContext- Type Parameters:
T- Variable type.- Parameters:
qualifier- Qualifier for variable. May benull.type- Type for variable.compileVar- TypicalCompileVarto handle value. May, however, be anyConsumerfor the createdVar.
-
getOfficeSection
Description copied from interface:CompileOfficeContextObtains theOfficeSection.- Specified by:
getOfficeSectionin interfaceCompileOfficeContext- Returns:
OfficeSection.
-
overrideSection
public OfficeSection overrideSection(Class<? extends SectionSource> sectionSourceClass, String sectionLocation) Description copied from interface:CompileOfficeContextOverrides the defaultOfficeSection.- Specified by:
overrideSectionin interfaceCompileOfficeContext- Parameters:
sectionSourceClass-SectionSourceClass.sectionLocation- Location of theOfficeSection.- Returns:
- Overridden
OfficeSection.
-
link
public HttpInput link(boolean isSecure, String httpMethodName, String applicationPath, Class<?> sectionClass) Description copied from interface:CompileWebContextConvenience method to link a URL to theservicemethod of theClass.- Specified by:
linkin interfaceCompileWebContext- Parameters:
isSecure- Indicates if secure.httpMethodName- Name of theHttpMethod.applicationPath- Application path.sectionClass-Classcontaining aservicemethod.- Returns:
HttpInput.
-
link
Description copied from interface:CompileWebContextConvenience method to link a URI to theservicemethod of theClass.- Specified by:
linkin interfaceCompileWebContext- Parameters:
isSecure- Indicates if secure.applicationPath- Application path.sectionClass-Classcontaining aservicemethod.- Returns:
HttpUrlContinuation.
-