org.jboss.deployers.spi.management
Class ContextStateMapper<T extends Enum<?>>

java.lang.Object
  extended by org.jboss.deployers.spi.management.ContextStateMapper<T>

public class ContextStateMapper<T extends Enum<?>>
extends Object

Basic state mapper.

Version:
$Revision: 88961 $
Author:
Emanuel Muckenhuber

Constructor Summary
ContextStateMapper(Map<String,T> mappings, T installState, T uninstallState, T error, T unknown)
           
 
Method Summary
 T getErrorState()
           
protected  T getMapping(org.jboss.dependency.spi.ControllerState controllerState)
           
 T map(org.jboss.dependency.spi.ControllerState currentState, org.jboss.dependency.spi.ControllerState toState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextStateMapper

public ContextStateMapper(Map<String,T> mappings,
                          T installState,
                          T uninstallState,
                          T error,
                          T unknown)
Method Detail

getErrorState

public T getErrorState()

map

public T map(org.jboss.dependency.spi.ControllerState currentState,
             org.jboss.dependency.spi.ControllerState toState)

getMapping

protected T getMapping(org.jboss.dependency.spi.ControllerState controllerState)


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.