org.jtheque.core.managers.module.beans
Class ModuleContainer

java.lang.Object
  extended by org.jtheque.core.managers.module.beans.ModuleContainer

public final class ModuleContainer
extends java.lang.Object

Author:
Baptiste Wicht

Constructor Summary
ModuleContainer(java.lang.String beanName, Module infos, ModuleDefinition definition, boolean primary)
          Construct a new ModuleContainer.
 
Method Summary
 java.lang.String getBeanName()
          Return the name of the bean.
 Module getInfos()
          Return the infos of the module.
 java.lang.Object getModule()
          Return the real module.
 ModuleDefinition getModuleDefinition()
          Return the module definition.
 java.io.File getModuleFile()
          Return the file of the module.
 BeanMethod getPlugMethod()
          Return the plug method.
 BeanMethod getPrePlugMethod()
          Return the preplug method.
 ModuleState getState()
          Return the current state of the module.
 BeanMethod getUnPlugMethod()
          Return the unplug method.
 boolean hasModuleDefinition()
          Indicate if the module has a module definition.
 boolean isPrimaryModule()
          Indicate if the module is a primary one or not.
 void setModule(java.lang.Object module)
          Set the module instance.
 void setPlugMethod(BeanMethod plugMethod)
          Set the plug method.
 void setPrePlugMethod(BeanMethod prePlugMethod)
          Set the preplug method.
 void setState(ModuleState state)
          Set the state of the module.
 void setUnPlugMethod(BeanMethod unPlugMethod)
          Set the unplug method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleContainer

public ModuleContainer(java.lang.String beanName,
                       Module infos,
                       ModuleDefinition definition,
                       boolean primary)
Construct a new ModuleContainer.

Parameters:
beanName - The name of the bean.
infos - The informations about the module.
definition - The definition of the module.
primary - A boolean flag indicating if the module is a primary module or not.
Method Detail

getModule

public java.lang.Object getModule()
Return the real module.

Returns:
The real module.

getPlugMethod

public BeanMethod getPlugMethod()
Return the plug method.

Returns:
The plug method.

setPlugMethod

public void setPlugMethod(BeanMethod plugMethod)
Set the plug method.

Parameters:
plugMethod - The plug method.

getPrePlugMethod

public BeanMethod getPrePlugMethod()
Return the preplug method.

Returns:
The plug method.

setPrePlugMethod

public void setPrePlugMethod(BeanMethod prePlugMethod)
Set the preplug method.

Parameters:
prePlugMethod - The preplug method.

getUnPlugMethod

public BeanMethod getUnPlugMethod()
Return the unplug method.

Returns:
The plug method.

setUnPlugMethod

public void setUnPlugMethod(BeanMethod unPlugMethod)
Set the unplug method.

Parameters:
unPlugMethod - The unplug method.

getState

public ModuleState getState()
Return the current state of the module.

Returns:
The current state of the module.

setState

public void setState(ModuleState state)
Set the state of the module.

Parameters:
state - The state of the module.

getInfos

public Module getInfos()
Return the infos of the module.

Returns:
The infos of the module.

getModuleDefinition

public ModuleDefinition getModuleDefinition()
Return the module definition.

Returns:
the module definition.

hasModuleDefinition

public boolean hasModuleDefinition()
Indicate if the module has a module definition.

Returns:
true if the module has a module definition else false.

isPrimaryModule

public boolean isPrimaryModule()
Indicate if the module is a primary one or not.

Returns:
true if the module is a primary one else false.

getModuleFile

public java.io.File getModuleFile()
Return the file of the module.

Returns:
The file of the module.

getBeanName

public java.lang.String getBeanName()
Return the name of the bean.

Returns:
The name of the bean.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setModule

public void setModule(java.lang.Object module)
Set the module instance.

Parameters:
module - The module instance.


Copyright © 2009 JTheque. All Rights Reserved.