org.locomotive.directory
Class BeanConfiguration

java.lang.Object
  |
  +--org.locomotive.directory.BeanConfiguration

public class BeanConfiguration
extends java.lang.Object

A class representing a bean configuration.

Version:
$Id: BeanConfiguration.java,v 1.2 1999/05/05 10:19:31 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).

Field Summary
protected  long lastReadTime
           
 
Constructor Summary
BeanConfiguration(DirectoryContext context)
          Constructor for BeanConfiguration.
 
Method Summary
 void addBeanProperty(BeanProperty beanProperty)
          Add a bean property to this bean configuration.
 java.util.Enumeration getBeanProperties()
          Get all the properties defined for this bean.
 BeanProperty getBeanProperty(java.lang.String name)
          Get a bean property by name.
 java.lang.String getClassName()
          Get the fully qualified classname for this bean configuration.
 java.lang.Class getClazz()
          Get class for this bean configuration.
 DirectoryContext getDirectoryContext()
          Get the directory context for this configuration.
 java.lang.String getFullName()
          Get the full name of this configuration.
 long getLastReadTime()
          Get the time this configuration last was read from the file system.
 java.lang.String getScopeType()
          Get the scope type for this bean.
 void setClassName(java.lang.String className)
          Set the fully qualified classname for this bean configuration.
 void setClazz(java.lang.Class clazz)
          Set the class for this bean configuration.
 void setDirectoryContext(DirectoryContext directoryContext)
          Set the directory context for this configuration.
 void setFullName(java.lang.String fullName)
          Set the full name of this configuration.
 void setLastReadTime(long lastReadTime)
          Set the time this configuration last was read from the file system.
 void setScopeType(java.lang.String scopeType)
          Set the scope type for this bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastReadTime

protected long lastReadTime
Constructor Detail

BeanConfiguration

public BeanConfiguration(DirectoryContext context)
Constructor for BeanConfiguration.
Parameters:
context - The DirectoryContext for this bean configuration.
Method Detail

getScopeType

public java.lang.String getScopeType()
Get the scope type for this bean. The method returns "default" if no scope was defined in the configuration of this bean.

setScopeType

public void setScopeType(java.lang.String scopeType)
Set the scope type for this bean.
Parameters:
scopeType - A string containg the scopeType for this component.

getClazz

public java.lang.Class getClazz()
Get class for this bean configuration.

setClazz

public void setClazz(java.lang.Class clazz)
Set the class for this bean configuration.

setClassName

public void setClassName(java.lang.String className)
Set the fully qualified classname for this bean configuration.
Parameters:
className - The class name for this bean.

getClassName

public java.lang.String getClassName()
Get the fully qualified classname for this bean configuration.
Returns:
The the class for this bean configuration.

getBeanProperty

public BeanProperty getBeanProperty(java.lang.String name)
Get a bean property by name.
Returns:
The specified property if defined, or null otherwise.

addBeanProperty

public void addBeanProperty(BeanProperty beanProperty)
Add a bean property to this bean configuration.
Parameters:
beanProperty - The bean property to add, the name of beanProperty will be the key for retrieving the property.

getBeanProperties

public java.util.Enumeration getBeanProperties()
Get all the properties defined for this bean.
Returns:
an Enumeration with all the BeanProperty objects of this configuration.

getDirectoryContext

public DirectoryContext getDirectoryContext()
Get the directory context for this configuration.

setDirectoryContext

public void setDirectoryContext(DirectoryContext directoryContext)
Set the directory context for this configuration.
Parameters:
directoryContext - The directory context for this bean configuration.

getLastReadTime

public long getLastReadTime()
Get the time this configuration last was read from the file system. The time stamp is generated using System.currentTimeMillis().
Returns:
Return The time this configuration last was read from the file system.

setLastReadTime

public void setLastReadTime(long lastReadTime)
Set the time this configuration last was read from the file system.
Parameters:
lastReadTime - The time we last read this bean configuration from the file system, expressed using System.currentTimeMillis().

setFullName

public void setFullName(java.lang.String fullName)
Set the full name of this configuration.
Parameters:
fullName - The full name of this configuration.

getFullName

public java.lang.String getFullName()
Get the full name of this configuration.
Returns:
Return the full name of this configuration.