kaos.policy.guard
Class GuardRetriever

java.lang.Object
  extended by kaos.policy.guard.GuardRetriever

public class GuardRetriever
extends java.lang.Object

This class provides a mechanism for enforcers to obtain a reference to the Guard. $Revision: 1.15 $


Constructor Summary
GuardRetriever()
           
 
Method Summary
static Guard getGuard()
          Retrieve a reference to the Guard.
static Guard instantiateGuard()
           
static Guard instantiateGuard(java.lang.String[] args)
           
static Guard instantiateGuard(java.lang.String guardNickName, java.util.Vector domainNames, KAoSServiceRoot sr, EnforcerFactory enforcerFactory, java.lang.Object infrastructureInfo)
          Instantiate Guard for this VM.
static void setControlledActionClasses(java.util.List actionClasses)
          Set the Actor classes for the Guard.
static void setControlledActorClasses(java.util.List actorClasses)
          Set the Actor classes for the Guard.
static void setGuard(Guard guard)
          Store a reference to the Guard.
static void setInstanceClassifierFactory(InstanceClassifierFactory factory)
          Set the InstanceClassifierFactory for the Guard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardRetriever

public GuardRetriever()
Method Detail

getGuard

public static Guard getGuard()
Retrieve a reference to the Guard.

Returns:
a reference to the Guard

instantiateGuard

public static Guard instantiateGuard(java.lang.String[] args)
                              throws GuardInstantiationException
Throws:
GuardInstantiationException

instantiateGuard

public static Guard instantiateGuard()
                              throws GuardInstantiationException
Throws:
GuardInstantiationException

instantiateGuard

public static Guard instantiateGuard(java.lang.String guardNickName,
                                     java.util.Vector domainNames,
                                     KAoSServiceRoot sr,
                                     EnforcerFactory enforcerFactory,
                                     java.lang.Object infrastructureInfo)
Instantiate Guard for this VM. This method should be called only once in a given VM.

Returns:
a reference to the Guard

setGuard

public static void setGuard(Guard guard)
Store a reference to the Guard. This method should be called by the real Guard object during initialization time

Parameters:
guard - the current Guard

setInstanceClassifierFactory

public static void setInstanceClassifierFactory(InstanceClassifierFactory factory)
Set the InstanceClassifierFactory for the Guard. This methode allows to override the default.


setControlledActorClasses

public static void setControlledActorClasses(java.util.List actorClasses)
Set the Actor classes for the Guard. This methode allows to override the default.


setControlledActionClasses

public static void setControlledActionClasses(java.util.List actionClasses)
Set the Actor classes for the Guard. This methode allows to override the default.