org.jboss.beans.metadata.plugins
Class AbstractLazyMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
          extended by org.jboss.beans.metadata.plugins.AbstractBeanMetaData
              extended by org.jboss.beans.metadata.plugins.AbstractLazyMetaData
All Implemented Interfaces:
Serializable, Cloneable, MutableLifecycleHolder, TypeProvider, BeanMetaData, BeanMetaDataFactory, FeatureMetaData, LazyMetaData, MetaDataVisitorNode, ValueMetaData, org.jboss.util.JBossInterface

public class AbstractLazyMetaData
extends AbstractBeanMetaData
implements LazyMetaData

Lazy metadata.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractBeanMetaData
accessMode, aliases, aliasMetaData, autowireCandidate, autowireType, bean, classLoader, constructor, context, create, demands, depends, destroy, errorHandlingMode, installCallbacks, installs, isAbstract, mode, name, parent, related, start, stop, supplies, uninstallCallbacks, uninstalls
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider
ERROR_MSG
 
Constructor Summary
AbstractLazyMetaData()
           
AbstractLazyMetaData(String beanName)
           
 
Method Summary
 AbstractLazyMetaData clone()
          Clone the object
 String getBeanName()
          Get the bean.
 List<BeanMetaData> getBeans()
          Get the beans
 Iterator<? extends MetaDataVisitorNode> getChildren()
          Return the child nodes
 Set<String> getInterfaces()
          Get the intefaces.
 Object getUnderlyingValue()
          Get the underlying value
 void initialVisit(MetaDataVisitor vistor)
          Visit the node
 boolean isExposeClass()
          Is class exposed.
 void setBeanName(String beanName)
           
 void setExposeClass(boolean exposeClass)
           
protected  void setFactoryClassName(String factoryClassName)
           
 void setInterfaces(Set<String> interfaces)
           
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractBeanMetaData
addChildren, addProperty, checkConstructorFactoryClass, createNestedBeanHandler, doClone, getAccessMode, getAliases, getAliasMetaData, getAutowireType, getBean, getClassLoader, getConstructor, getCreate, getDemands, getDepends, getDestroy, getErrorHandlingMode, getInstallCallbacks, getInstalls, getMode, getName, getParent, getProperties, getProperty, getRelated, getStart, getStop, getSupplies, getType, getUninstallCallbacks, getUninstalls, getValue, isAbstract, isAutowireCandidate, setAbstract, setAccessMode, setAliases, setAliasMetaData, setAutowireCandidate, setAutowireType, setBean, setClassLoader, setConstructor, setCreate, setDemands, setDepends, setDestroy, setErrorHandlingMode, setInstallCallbacks, setInstalls, setMode, setName, setParent, setProperties, setRelated, setStart, setStop, setSupplies, setUninstallCallbacks, setUninstalls, toShortString, toString
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
applyCollectionOrMapCheck, describeVisit, doClone, getAnnotations, getDescription, setAnnotations, setDescription
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.beans.metadata.spi.BeanMetaData
getAccessMode, getAliases, getAnnotations, getAutowireType, getBean, getClassLoader, getConstructor, getCreate, getDemands, getDepends, getDestroy, getErrorHandlingMode, getInstallCallbacks, getInstalls, getMode, getName, getParent, getProperties, getRelated, getStart, getStop, getSupplies, getUninstallCallbacks, getUninstalls, isAbstract, isAutowireCandidate, setAnnotations, setClassLoader, setMode, setName
 
Methods inherited from interface org.jboss.beans.metadata.spi.FeatureMetaData
getDescription
 
Methods inherited from interface org.jboss.beans.metadata.spi.ValueMetaData
getValue
 
Methods inherited from interface org.jboss.util.JBossInterface
toShortString, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
describeVisit
 

Constructor Detail

AbstractLazyMetaData

public AbstractLazyMetaData()

AbstractLazyMetaData

public AbstractLazyMetaData(String beanName)
Method Detail

getUnderlyingValue

public Object getUnderlyingValue()
Description copied from interface: ValueMetaData
Get the underlying value

Specified by:
getUnderlyingValue in interface ValueMetaData
Overrides:
getUnderlyingValue in class AbstractBeanMetaData
Returns:
the underlying value

initialVisit

public void initialVisit(MetaDataVisitor vistor)
Description copied from interface: MetaDataVisitorNode
Visit the node

Specified by:
initialVisit in interface MetaDataVisitorNode
Overrides:
initialVisit in class AbstractBeanMetaData
Parameters:
vistor - the visitor

getChildren

public Iterator<? extends MetaDataVisitorNode> getChildren()
Description copied from interface: MetaDataVisitorNode
Return the child nodes

Specified by:
getChildren in interface MetaDataVisitorNode
Overrides:
getChildren in class AbstractFeatureMetaData
Returns:
Iterator or null if there aren't any

getBeans

public List<BeanMetaData> getBeans()
Description copied from interface: BeanMetaDataFactory
Get the beans

Specified by:
getBeans in interface BeanMetaDataFactory
Overrides:
getBeans in class AbstractBeanMetaData
Returns:
a List

setFactoryClassName

protected void setFactoryClassName(String factoryClassName)

getBeanName

public String getBeanName()
Description copied from interface: LazyMetaData
Get the bean.

Specified by:
getBeanName in interface LazyMetaData
Returns:
the bean

setBeanName

public void setBeanName(String beanName)

isExposeClass

public boolean isExposeClass()
Description copied from interface: LazyMetaData
Is class exposed.

Specified by:
isExposeClass in interface LazyMetaData
Returns:
true if expose class

setExposeClass

public void setExposeClass(boolean exposeClass)

getInterfaces

public Set<String> getInterfaces()
Description copied from interface: LazyMetaData
Get the intefaces.

Specified by:
getInterfaces in interface LazyMetaData
Returns:
the interfaces

setInterfaces

public void setInterfaces(Set<String> interfaces)

clone

public AbstractLazyMetaData clone()
Description copied from interface: MetaDataVisitorNode
Clone the object

Specified by:
clone in interface MetaDataVisitorNode
Specified by:
clone in interface org.jboss.util.JBossInterface
Overrides:
clone in class AbstractBeanMetaData
Returns:
a clone of the object


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.