org.jboss.kernel.plugins.dependency
Class KernelControllerContextAction

java.lang.Object
  extended by org.jboss.dependency.plugins.action.AccessControllerContextAction<T,T>
      extended by org.jboss.dependency.plugins.action.SimpleControllerContextAction<KernelControllerContext>
          extended by org.jboss.kernel.plugins.dependency.KernelControllerContextAction
All Implemented Interfaces:
ControllerContextAction
Direct Known Subclasses:
InstallsAwareAction

public class KernelControllerContextAction
extends SimpleControllerContextAction<KernelControllerContext>

KernelControllerContextAction.

Version:
$Revision: 90317 $
Author:
Adrian Brock, Ales Justin

Field Summary
protected  org.jboss.logging.Logger log
          The log
 
Constructor Summary
KernelControllerContextAction()
           
 
Method Summary
protected  KernelControllerContext contextCast(ControllerContext context)
          Cast the context to the actual implementation.
protected  Class<? extends KernelControllerContextAware> getActionAwareInterface()
          Get the action aware interface.
 void installAction(KernelControllerContext context)
          The install.
protected  void installActionInternal(KernelControllerContext context)
          Execute install action.
protected  void setKernelControllerContext(KernelControllerContext context)
          Set the context.
 void uninstallAction(KernelControllerContext context)
          The uninstall.
protected  void uninstallActionInternal(KernelControllerContext context)
          Execute uninstall action.
protected  void unsetKernelControllerContext(KernelControllerContext context)
          Unset the context.
protected  boolean validateContext(ControllerContext context)
          Validate context
 
Methods inherited from class org.jboss.dependency.plugins.action.SimpleControllerContextAction
fullContextCast, secureInstallAction, secureUninstallAction, simpleContextCast, simpleInstallAction, simpleUninstallAction
 
Methods inherited from class org.jboss.dependency.plugins.action.AccessControllerContextAction
install, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
The log

Constructor Detail

KernelControllerContextAction

public KernelControllerContextAction()
Method Detail

validateContext

protected boolean validateContext(ControllerContext context)
Description copied from class: AccessControllerContextAction
Validate context

Specified by:
validateContext in class AccessControllerContextAction<KernelControllerContext,KernelControllerContext>
Parameters:
context - context instance to validate
Returns:
false if not able to use privileged action

contextCast

protected KernelControllerContext contextCast(ControllerContext context)
Description copied from class: SimpleControllerContextAction
Cast the context to the actual implementation.

Specified by:
contextCast in class SimpleControllerContextAction<KernelControllerContext>
Parameters:
context - the context
Returns:
exact context type

installAction

public void installAction(KernelControllerContext context)
                   throws Throwable
Description copied from class: SimpleControllerContextAction
The install.

Specified by:
installAction in class SimpleControllerContextAction<KernelControllerContext>
Parameters:
context - the context
Throws:
Throwable - for any error

setKernelControllerContext

protected void setKernelControllerContext(KernelControllerContext context)
                                   throws Throwable
Set the context.

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

installActionInternal

protected void installActionInternal(KernelControllerContext context)
                              throws Throwable
Execute install action.

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

getActionAwareInterface

protected Class<? extends KernelControllerContextAware> getActionAwareInterface()
Get the action aware interface.

Returns:
the action aware interface

uninstallAction

public void uninstallAction(KernelControllerContext context)
Description copied from class: SimpleControllerContextAction
The uninstall.

Specified by:
uninstallAction in class SimpleControllerContextAction<KernelControllerContext>
Parameters:
context - the context

uninstallActionInternal

protected void uninstallActionInternal(KernelControllerContext context)
Execute uninstall action.

Parameters:
context - the context

unsetKernelControllerContext

protected void unsetKernelControllerContext(KernelControllerContext context)
Unset the context.

Parameters:
context - the context


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