public interface AutoWireApplication
Modifier and Type | Method and Description |
---|---|
AutoWireGovernance |
addGovernance(String governanceName,
String governanceSourceClassName)
Adds
Governance over the ManagedObject and object
instances. |
AutoWireObject |
addManagedObject(String managedObjectSourceClassName,
ManagedObjectSourceWirer wirer,
AutoWire... autoWiring)
Adds a
ManagedObjectSource for dependency injection. |
void |
addObject(Object object,
AutoWire... autoWiring)
Adds a raw object for dependency injection.
|
AutoWireSection |
addSection(String sectionName,
String sectionSourceClassName,
String sectionLocation)
Adds an
AutoWireSection . |
<A extends AutoWireSection> |
addSection(String sectionName,
String sectionSourceClassName,
String sectionLocation,
AutoWireSectionFactory<A> sectionFactory)
Adds an
AutoWireSection with the ability to override the
AutoWireSection used. |
void |
addSectionTransformer(AutoWireSectionTransformer transformer)
Adds a
AutoWireSectionTransformer . |
void |
addStartupFlow(AutoWireSection section,
String inputName)
Adds a flow to be triggered on start-up.
|
AutoWireSupplier |
addSupplier(String supplierSourceClassName)
Adds a
SupplierSource to provide ManagedObject instances
for dependency injection. |
AutoWireTeam |
assignDefaultTeam(String teamSourceClassName)
|
AutoWireTeam |
assignTeam(String teamSourceClassName,
AutoWire... autoWiring)
Assigns a
Team responsible for:
Task dependent on the specified object types
Governance with the extension interface object type
|
OfficeFloorCompiler |
getOfficeFloorCompiler()
Obtains the
OfficeFloorCompiler being used. |
AutoWireSection |
getSection(String sectionName)
Obtains the
AutoWireSection by its name. |
boolean |
isLinked(AutoWireSection section,
String sectionOutputName)
Determines if the
AutoWireSection output is configured for
linking. |
boolean |
isObjectAvailable(AutoWire autoWiring)
Indicates if the
AutoWireObject is already configured for the
AutoWire . |
void |
link(AutoWireSection sourceSection,
String sourceOutputName,
AutoWireSection targetSection,
String targetInputName)
Links the source
SectionOutput to a target SectionInput . |
void |
linkEscalation(Class<? extends Throwable> escalation,
AutoWireSection section,
String inputName)
Links the
Escalation to be handled by the
OfficeSectionInput . |
AutoWireOfficeFloor |
openOfficeFloor()
Opens the
AutoWireOfficeFloor . |
void |
setProfiler(Profiler profiler)
Specifies the
Profiler . |
OfficeFloorCompiler getOfficeFloorCompiler()
Obtains the OfficeFloorCompiler
being used.
This allows manipulation of the OfficeFloorCompiler
before
auto-wiring to compile and open the OfficeFloor
.
OfficeFloorCompiler
being used.AutoWireSection addSection(String sectionName, String sectionSourceClassName, String sectionLocation)
AutoWireSection
.sectionName
- Name of the OfficeSection
.sectionSourceClassName
- Class name of the SectionSource
. May be an alias.sectionLocation
- OfficeSection
location.AutoWireSection
to configure properties and link flows.<A extends AutoWireSection> AutoWireSection addSection(String sectionName, String sectionSourceClassName, String sectionLocation, AutoWireSectionFactory<A> sectionFactory)
AutoWireSection
with the ability to override the
AutoWireSection
used.A
- AutoWireSection
type.sectionName
- Name of the OfficeSection
.sectionSourceClassName
- Class name of the SectionSource
. May be an alias.sectionLocation
- OfficeSection
location.sectionFactory
- AutoWireSectionFactory
to allow overriding the
AutoWireSection
utilised.AutoWireSection
to configure properties and
link flows.AutoWireSection getSection(String sectionName)
Obtains the AutoWireSection
by its name.
This is useful to obtain an existing AutoWireSection
to link to.
sectionName
- Name of the AutoWireSection
.AutoWireSection
or null
if not
AutoWireSection
by the name.void addSectionTransformer(AutoWireSectionTransformer transformer)
AutoWireSectionTransformer
.transformer
- AutoWireSectionTransformer
.void link(AutoWireSection sourceSection, String sourceOutputName, AutoWireSection targetSection, String targetInputName)
SectionOutput
to a target SectionInput
.sourceSection
- Source section.sourceOutputName
- Name of the source SectionOutput
.targetSection
- Target section.targetInputName
- Name of the target SectionInput
.boolean isLinked(AutoWireSection section, String sectionOutputName)
Determines if the AutoWireSection
output is configured for
linking.
This aids configuration by allowing to know if SectionOutput
flows have been configured (linked).
section
- AutoWireSection
.sectionOutputName
- SectionOutput
name.true
if configured for linking, otherwise
false
.void linkEscalation(Class<? extends Throwable> escalation, AutoWireSection section, String inputName)
Escalation
to be handled by the
OfficeSectionInput
.escalation
- Escalation
.section
- AutoWireSection
.inputName
- Name of the AutoWireSection
input.void addStartupFlow(AutoWireSection section, String inputName)
section
- AutoWireSection
.inputName
- Name of the AutoWireSection
input to trigger on
start-up.void addObject(Object object, AutoWire... autoWiring)
AutoWireObject addManagedObject(String managedObjectSourceClassName, ManagedObjectSourceWirer wirer, AutoWire... autoWiring)
ManagedObjectSource
for dependency injection.managedObjectSourceClassName
- Class name of the ManagedObjectSource
. May be an
alias.wirer
- ManagedObjectSourceWirer
to assist in configuring the
ManagedObjectSource
. May be null
if no
assistance is required.autoWiring
- AutoWire
matches that the ManagedObjectSource
is to provide dependency injection. At least one
AutoWire
must be provided.AutoWireObject
for the ManagedObjectSource
.AutoWireSupplier addSupplier(String supplierSourceClassName)
SupplierSource
to provide ManagedObject
instances
for dependency injection.supplierSourceClassName
- Class name of the SupplierSource
. May be an alias.AutoWireSupplier
.boolean isObjectAvailable(AutoWire autoWiring)
AutoWireObject
is already configured for the
AutoWire
.autoWiring
- AutoWire
to determine if available (configured).true
if an AutoWireObject
has been
configured for the AutoWire
.AutoWireGovernance addGovernance(String governanceName, String governanceSourceClassName)
Governance
over the ManagedObject
and object
instances.governanceName
- Name of the Governance
.governanceSourceClassName
- Class name of the GovernanceSource
. May be an alias.AutoWireGovernance
.AutoWireTeam assignTeam(String teamSourceClassName, AutoWire... autoWiring)
Team
responsible for:
Task
dependent on the specified object typesGovernance
with the extension interface object typeteamSourceClassName
- Class name of the TeamSource
. May be an alias.autoWiring
- AutoWire
instances to identify dependent Task
object types and Governance
extension interfaces the
Team
is responsible for. Must have at least one
AutoWire
provided.AutoWireTeam
.AutoWireTeam assignDefaultTeam(String teamSourceClassName)
teamSourceClassName
- Class name of the TeamSource
. May be an alias.AutoWireTeam
.void setProfiler(Profiler profiler)
Profiler
.profiler
- Profiler
.AutoWireOfficeFloor openOfficeFloor() throws Exception
AutoWireOfficeFloor
.AutoWireOfficeFloor
.Exception
- If fails to open the AutoWireOfficeFloor
.Copyright © 2005–2016. All rights reserved.