org.jboss.kernel.plugins.dependency
Class AbstractScopeAction

java.lang.Object
  extended by org.jboss.dependency.plugins.action.AccessControllerContextAction<T,T>
      extended by org.jboss.dependency.plugins.action.SimpleControllerContextAction<ControllerContext>
          extended by org.jboss.kernel.plugins.dependency.AbstractScopeAction
All Implemented Interfaces:
ControllerContextAction
Direct Known Subclasses:
InstallExistingScopeAction, InstallScopeAction

public abstract class AbstractScopeAction
extends SimpleControllerContextAction<ControllerContext>

Abstract scope action.

Author:
Ales Justin

Constructor Summary
AbstractScopeAction()
           
 
Method Summary
protected  ControllerContext contextCast(ControllerContext context)
          Cast the context to the actual implementation.
protected  org.jboss.metadata.spi.scope.ScopeKey getScopeKey(ControllerContext context)
          Get install scope key.
protected  boolean validateContext(ControllerContext context)
          Validate context
 
Methods inherited from class org.jboss.dependency.plugins.action.SimpleControllerContextAction
fullContextCast, installAction, secureInstallAction, secureUninstallAction, simpleContextCast, simpleInstallAction, simpleUninstallAction, uninstallAction
 
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
 

Constructor Detail

AbstractScopeAction

public AbstractScopeAction()
Method Detail

contextCast

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

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

validateContext

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

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

getScopeKey

protected org.jboss.metadata.spi.scope.ScopeKey getScopeKey(ControllerContext context)
Get install scope key.

Parameters:
context - the context
Returns:
install scope key


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