org.jboss.dependency.plugins.action
Class SimpleControllerContextAction<T extends ControllerContext>

java.lang.Object
  extended by org.jboss.dependency.plugins.action.AccessControllerContextAction<T,T>
      extended by org.jboss.dependency.plugins.action.SimpleControllerContextAction<T>
Type Parameters:
T - ControllerContext impl
All Implemented Interfaces:
ControllerContextAction
Direct Known Subclasses:
AbstractScopeAction, KernelControllerContextAction

public abstract class SimpleControllerContextAction<T extends ControllerContext>
extends AccessControllerContextAction<T,T>

Simple and full context impls are the same.

Author:
Ales Justin

Constructor Summary
SimpleControllerContextAction()
           
 
Method Summary
protected abstract  T contextCast(ControllerContext context)
          Cast the context to the actual implementation.
protected  T fullContextCast(ControllerContext context)
          Cast context instance.
protected abstract  void installAction(T context)
          The install.
protected  void secureInstallAction(T context)
          Secure call to install action.
protected  void secureUninstallAction(T context)
          Secure call to uninstall action.
protected  T simpleContextCast(ControllerContext context)
          Cast context instance.
protected  void simpleInstallAction(T context)
          Unsecure call to install action.
protected  void simpleUninstallAction(T context)
          Unsecure call to uninstall action.
protected abstract  void uninstallAction(T context)
          The uninstall.
 
Methods inherited from class org.jboss.dependency.plugins.action.AccessControllerContextAction
install, uninstall, validateContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleControllerContextAction

public SimpleControllerContextAction()
Method Detail

contextCast

protected abstract T contextCast(ControllerContext context)
Cast the context to the actual implementation.

Parameters:
context - the context
Returns:
exact context type

simpleContextCast

protected T simpleContextCast(ControllerContext context)
Description copied from class: AccessControllerContextAction
Cast context instance. We can throw class cast exception if unable to cast it it S.

Specified by:
simpleContextCast in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - context to cast
Returns:
casted context

fullContextCast

protected T fullContextCast(ControllerContext context)
Description copied from class: AccessControllerContextAction
Cast context instance. We can throw class cast exception if unable to cast it it T.

Specified by:
fullContextCast in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - context to cast
Returns:
casted context

installAction

protected abstract void installAction(T context)
                               throws Throwable
The install.

Parameters:
context - the context
Throws:
Throwable - for any error

simpleInstallAction

protected void simpleInstallAction(T context)
                            throws Throwable
Description copied from class: AccessControllerContextAction
Unsecure call to install action.

Specified by:
simpleInstallAction in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - the context
Throws:
Throwable - for any error

secureInstallAction

protected void secureInstallAction(T context)
                            throws Throwable
Description copied from class: AccessControllerContextAction
Secure call to install action.

Specified by:
secureInstallAction in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - the context
Throws:
Throwable - for any error

uninstallAction

protected abstract void uninstallAction(T context)
The uninstall.

Parameters:
context - the context

simpleUninstallAction

protected void simpleUninstallAction(T context)
Description copied from class: AccessControllerContextAction
Unsecure call to uninstall action.

Specified by:
simpleUninstallAction in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - the context

secureUninstallAction

protected void secureUninstallAction(T context)
Description copied from class: AccessControllerContextAction
Secure call to uninstall action.

Specified by:
secureUninstallAction in class AccessControllerContextAction<T extends ControllerContext,T extends ControllerContext>
Parameters:
context - the context


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