org.jboss.system.server.profileservice.repository
Class AbstractProfileLifeCycleAction

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractProfileAction
      extended by org.jboss.system.server.profileservice.repository.AbstractProfileLifeCycleAction
Direct Known Subclasses:
ProfileCreateAction, ProfileStartAction

public abstract class AbstractProfileLifeCycleAction
extends AbstractProfileAction

A abstract profile lifecycle action. TODO use jboss-reflect for this.

Version:
$Revision: 87161 $
Author:
Emanuel Muckenhuber

Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractProfileAction
log
 
Constructor Summary
AbstractProfileLifeCycleAction()
           
 
Method Summary
protected abstract  String getInstallMethod()
           
protected abstract  String getUninstallMethod()
           
 void install(org.jboss.profileservice.spi.Profile profile)
           
protected static void invoke(org.jboss.profileservice.spi.Profile profile, String method)
           
 void uninstall(org.jboss.profileservice.spi.Profile profile)
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractProfileAction
install, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProfileLifeCycleAction

public AbstractProfileLifeCycleAction()
Method Detail

getInstallMethod

protected abstract String getInstallMethod()

getUninstallMethod

protected abstract String getUninstallMethod()

install

public void install(org.jboss.profileservice.spi.Profile profile)
             throws Exception
Specified by:
install in class AbstractProfileAction
Throws:
Exception

uninstall

public void uninstall(org.jboss.profileservice.spi.Profile profile)
Specified by:
uninstall in class AbstractProfileAction

invoke

protected static void invoke(org.jboss.profileservice.spi.Profile profile,
                             String method)
                      throws IllegalArgumentException,
                             IllegalAccessException,
                             InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException


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