org.jboss.security.microcontainer.beans
Class BasePolicyModule

java.lang.Object
  extended by org.jboss.security.microcontainer.beans.BasePolicyModule
Direct Known Subclasses:
FlaggedPolicyModule, StackRefPolicyModule

public class BasePolicyModule
extends Object

This bean represents a basic policy module, with its class name and options map.

Author:
Stefan Guilhen

Field Summary
protected  String code
          the fully-qualified name of the module.
protected  Map<String,Object> options
          The module's options map (name -> value).
 
Constructor Summary
BasePolicyModule()
           Creates an instance of BasePolicyModule.
 
Method Summary
 String getCode()
           Obtains the fully-qualified class name of the module.
 Map<String,Object> getOptions()
           Obtains the module's options.
 void setCode(String code)
           Sets the fully-qualified class name of the module.
 void setOptions(Map<String,Object> options)
           Sets the options of the module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

protected String code
the fully-qualified name of the module.


options

protected Map<String,Object> options
The module's options map (name -> value).

Constructor Detail

BasePolicyModule

public BasePolicyModule()

Creates an instance of BasePolicyModule.

Method Detail

getCode

public String getCode()

Obtains the fully-qualified class name of the module.

Returns:
a String representing the class name.

setCode

public void setCode(String code)

Sets the fully-qualified class name of the module.

Parameters:
code - a String representing the class name to be set.

getOptions

public Map<String,Object> getOptions()

Obtains the module's options.

Returns:
a Map<String,Object> containing the module's options.

setOptions

public void setOptions(Map<String,Object> options)

Sets the options of the module.

Parameters:
options - a Map<String,Object> containing the options to be set.


Copyright © 2008 JBoss Inc.. All Rights Reserved.