Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * OfficeFloor - http://www.officefloor.net
   * Copyright (C) 2005-2011 Daniel Sagenschneider
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 package net.officefloor.plugin.autowire;
 
Application which has auto-wired configuration.

Author(s):
Daniel Sagenschneider
 
 public interface AutoWireApplication {

Obtains the net.officefloor.compile.OfficeFloorCompiler being used.

This allows manipulation of the net.officefloor.compile.OfficeFloorCompiler before auto-wiring to compile and open the net.officefloor.frame.api.manage.OfficeFloor.

 
Adds an AutoWireSection.

Parameters:
sectionName Name of the net.officefloor.compile.spi.office.OfficeSection.
sectionSourceClass net.officefloor.compile.spi.section.source.SectionSource class.
sectionLocation net.officefloor.compile.spi.office.OfficeSection location.
Returns:
AutoWireSection to configure properties and link flows.
 
 	<S extends SectionSourceAutoWireSection addSection(String sectionName,
 			Class<S> sectionSourceClassString sectionLocation);

Links the source net.officefloor.compile.spi.section.SectionOutput to a target net.officefloor.compile.spi.section.SectionInput.

Parameters:
sourceSection Source section.
sourceOutputName Name of the source net.officefloor.compile.spi.section.SectionOutput.
targetSection Target section.
targetInputName Name of the target net.officefloor.compile.spi.section.SectionInput.
 
 	void link(AutoWireSection sourceSectionString sourceOutputName,
 			AutoWireSection targetSectionString targetInputName);

Determines if the AutoWireSection output is configured for linking.

This aids configuration by allowing to know if net.officefloor.compile.spi.section.SectionOutput flows have been configured (linked).

Parameters:
section AutoWireSection.
sectionOutputName net.officefloor.compile.spi.section.SectionOutput name.
Returns:
true if configured for linking, otherwise false.
 
 	boolean isLinked(AutoWireSection sectionString sectionOutputName);

	void linkEscalation(Class<? extends Throwableescalation,
			AutoWireSection sectionString inputName);

Adds a raw object for dependency injection.

Parameters:
object Object implementing the type to be dependency injected.
objectTypes Types that the object is to provide dependency injection via auto-wiring. Should no types be provided the type is defaulted from the object.
	void addObject(Object objectClass<?>... objectTypes);

Adds a net.officefloor.frame.spi.managedobject.source.ManagedObjectSource for dependency injection.

Parameters:
managedObjectSourceClass net.officefloor.frame.spi.managedobject.source.ManagedObjectSource class.
wirer ManagedObjectSourceWirer to assist in configuring the net.officefloor.frame.spi.managedobject.source.ManagedObjectSource. May be null if no assistance is required.
objectTypes Types that the net.officefloor.frame.spi.managedobject.source.ManagedObjectSource is to provide dependency injection via auto-wiring.
Returns:
AutoWireObject for the net.officefloor.frame.spi.managedobject.source.ManagedObjectSource.
	<D extends Enum<D>, F extends Enum<F>, S extends ManagedObjectSource<D, F>> AutoWireObject addManagedObject(
			Class<S> managedObjectSourceClassManagedObjectSourceWirer wirer,
			Class<?>... objectTypes);

Assigns a net.officefloor.frame.spi.team.Team responsible for net.officefloor.frame.api.execute.Task dependent on the specified object types.

Parameters:
teamSourceClass net.officefloor.frame.spi.team.source.TeamSource class.
objectTypes Dependent net.officefloor.frame.api.execute.Task object types the net.officefloor.frame.spi.team.Team is responsible for. Must have at least one object type provided.
Returns:
AutoWireTeam.
	<T extends TeamSourceAutoWireTeam assignTeam(Class<T> teamSourceClass,
			Class<?>... objectTypes);

Assigns a net.officefloor.frame.spi.team.Team responsible for unassigned net.officefloor.frame.api.execute.Task instances.

Parameters:
teamSourceClass net.officefloor.frame.spi.team.source.TeamSource class.
Returns:
AutoWireTeam.
			Class<T> teamSourceClass);

Opens the AutoWireOfficeFloor.

Returns:
AutoWireOfficeFloor.
Throws:
java.lang.Exception If fails to open the AutoWireOfficeFloor.
New to GrepCode? Check out our FAQ X