org.jboss.security.microcontainer.beans.metadata
Class BaseModuleMetaData

java.lang.Object
  extended by org.jboss.security.microcontainer.beans.metadata.BaseModuleMetaData
Direct Known Subclasses:
FlaggedModuleMetaData, MappingModuleMetaData, StackRefModuleMetaData

public class BaseModuleMetaData
extends Object

This class contains the metadata of a simple policy module.

Author:
Stefan Guilhen

Field Summary
protected  String code
          the fully-qualified class name of the module.
protected  List<ModuleOptionMetaData> moduleOptions
          the module options metadata.
 
Constructor Summary
BaseModuleMetaData()
           
 
Method Summary
 org.jboss.beans.metadata.spi.BeanMetaData getBean(String moduleName)
           the BeanMetaData object that will be used by the microcontainer to create and populate an instance of BasePolicyModule.
 String getCode()
           Obtains the fully-qualified class name of the module.
 List<ModuleOptionMetaData> getModuleOptions()
           Obtains the metadata of the module options.
 void setCode(String code)
           Sets the fully-qualified class name of the module.
 void setModuleOptions(List<ModuleOptionMetaData> moduleOptions)
           Sets the metadata of the module options.
 
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 class name of the module.


moduleOptions

protected List<ModuleOptionMetaData> moduleOptions
the module options metadata.

Constructor Detail

BaseModuleMetaData

public BaseModuleMetaData()
Method Detail

getCode

public String getCode()

Obtains the fully-qualified class name of the module.

Returns:
a String containing the module's class name.

setCode

public void setCode(String code)

Sets the fully-qualified class name of the module.

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

getModuleOptions

public List<ModuleOptionMetaData> getModuleOptions()

Obtains the metadata of the module options.

Returns:
a List<ModuleOptionMetaData> containing the option's metadata.

setModuleOptions

public void setModuleOptions(List<ModuleOptionMetaData> moduleOptions)

Sets the metadata of the module options.

Parameters:
moduleOptions - a List<ModuleOptionMetaData> containing the metadata to be set.

getBean

public org.jboss.beans.metadata.spi.BeanMetaData getBean(String moduleName)

the BeanMetaData object that will be used by the microcontainer to create and populate an instance of BasePolicyModule.

Parameters:
moduleName - the name of the module bean to be created.
Returns:
a BeanMetaData object containing the metadata needed to create the module bean.


Copyright © 2009 JBoss Inc.. All Rights Reserved.