elge.engine.pools
Class ClassTemplate

java.lang.Object
  |
  +--elge.engine.pools.ClassTemplate

public class ClassTemplate
extends Object

This class should hold a setting for a class - some sort of template. That mean you can make preseted instance acording to this template :). In other worlds, the ClassPool stores also some instances but known as templates, not as a regular objects in the system. The template has info abou the xml config file :|

Author:
Palino

Field Summary
protected  String name
          Name of the template
protected  ClassLoadInfo parent
           
protected  Object template
          The template
 
Constructor Summary
ClassTemplate()
          Creates a new instance of ClassTemplate
ClassTemplate(ClassLoadInfo parent, String name, Object tmpObject)
          Creates a new instance of ClassTemplate
ClassTemplate(String name)
          Creates a new instance of ClassTemplate
ClassTemplate(String name, Object tmpObject)
          Creates a new instance of ClassTemplate
 
Method Summary
 Object createInstance()
          Mal by spravit vlastne kopiu objektu, ktory predstavuje ten template.
 ClassLoadInfo getClassLoadInfo()
           
 Object getCol(int i)
           
 String getName()
           
 Object getTemplate()
           
 Class getTmpClass()
           
 void setName(String tmpName)
           
 void setTemplate(Object tmpObject)
           
 void setTmpClass(Class tmpClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected ClassLoadInfo parent

name

protected String name
Name of the template


template

protected Object template
The template

Constructor Detail

ClassTemplate

public ClassTemplate()
Creates a new instance of ClassTemplate


ClassTemplate

public ClassTemplate(String name)
Creates a new instance of ClassTemplate


ClassTemplate

public ClassTemplate(String name,
                     Object tmpObject)
Creates a new instance of ClassTemplate


ClassTemplate

public ClassTemplate(ClassLoadInfo parent,
                     String name,
                     Object tmpObject)
Creates a new instance of ClassTemplate

Method Detail

getClassLoadInfo

public ClassLoadInfo getClassLoadInfo()
Returns:
the parent class pool...

getTmpClass

public Class getTmpClass()

setTmpClass

public void setTmpClass(Class tmpClass)

getName

public String getName()

setName

public void setName(String tmpName)

getTemplate

public Object getTemplate()

setTemplate

public void setTemplate(Object tmpObject)

getCol

public Object getCol(int i)

createInstance

public Object createInstance()
Mal by spravit vlastne kopiu objektu, ktory predstavuje ten template. Kedze sa predpoklada ze to je bean, tak nieco ako save bean a potom ze load bean... Ale mozno by to mohlo byt rychlejsie... Neva zatial to spravim e cez xml decoder a encoder ... Mozno by to mohlo byt nejako cez cache, ze si ten xmlko nahra aspon do pamete...