net.officefloor.frame.spi.governance
Interface Governance<I,F extends Enum<F>>

All Known Implementing Classes:
ClassGovernance, JpaTransactionGovernance

public interface Governance<I,F extends Enum<F>>

Provides Governance over the ManagedObject instances.

The extension interface of the ManagedObject is used to provide the Governance.

Author:
Daniel Sagenschneider

Method Summary
 void disregardGovernance(GovernanceContext<F> context)
          Disregard Governance of the ManagedObject instances.
 void enforceGovernance(GovernanceContext<F> context)
          Enforces the Governance of the ManagedObject instances under Governance.
 void governManagedObject(I extensionInterface, GovernanceContext<F> context)
          Registers the ManagedObject for Governance.
 

Method Detail

governManagedObject

void governManagedObject(I extensionInterface,
                         GovernanceContext<F> context)
                         throws Throwable
Registers the ManagedObject for Governance.

Parameters:
extensionInterface - Extension interface of the ManagedObject.
context - GovernanceContext.
Throws:
Throwable - If fails to govern the ManagedObject.

enforceGovernance

void enforceGovernance(GovernanceContext<F> context)
                       throws Throwable
Enforces the Governance of the ManagedObject instances under Governance.

Parameters:
context - GovernanceContext.
Throws:
Throwable - If fails to enforce Governance.

disregardGovernance

void disregardGovernance(GovernanceContext<F> context)
                         throws Throwable
Disregard Governance of the ManagedObject instances.

Parameters:
context - GovernanceContext.
Throws:
Throwable - If fails to disregard Governance.


Copyright © 2005-2013. All Rights Reserved.