Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container
Class AbstractIOCBean<T>

java.lang.Object
  extended by org.jboss.errai.ioc.client.container.AbstractIOCBean<T>
All Implemented Interfaces:
IOCBeanDef<T>
Direct Known Subclasses:
IOCDependentBean

public abstract class AbstractIOCBean<T>
extends Object
implements IOCBeanDef<T>

Author:
Mike Brock

Field Summary
protected  Class<?> beanType
           
protected  boolean concrete
           
protected  String name
           
protected  Set<Annotation> qualifiers
           
protected  Class<T> type
           
 
Constructor Summary
AbstractIOCBean()
           
 
Method Summary
 Class<?> getBeanClass()
          Returns the actual bean class represented by this bean.
 String getName()
          Returns the name of the bean.
 Set<Annotation> getQualifiers()
          Returns a set of qualifiers associated with this bean
 Class<T> getType()
          Returns the absolute type of the bean
 boolean isConcrete()
          Returns true if the bean is a concrete bean definition and not an interface or abstract type.
 boolean matches(Set<Annotation> annotations)
          Returns true if the underlying bean contains all of the annotations specified.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.ioc.client.container.IOCBeanDef
getInstance, getInstance, getScope, isActivated, newInstance
 

Field Detail

name

protected String name

type

protected Class<T> type

beanType

protected Class<?> beanType

qualifiers

protected Set<Annotation> qualifiers

concrete

protected boolean concrete
Constructor Detail

AbstractIOCBean

public AbstractIOCBean()
Method Detail

getType

public Class<T> getType()
Returns the absolute type of the bean

Specified by:
getType in interface IOCBeanDef<T>
Returns:
a class representing the absolute type of the bean
See Also:
IOCBeanDef.getBeanClass()

getBeanClass

public Class<?> getBeanClass()
Description copied from interface: IOCBeanDef
Returns the actual bean class represented by this bean.

Specified by:
getBeanClass in interface IOCBeanDef<T>
Returns:
the actual type of the bean.

getName

public String getName()
Description copied from interface: IOCBeanDef
Returns the name of the bean.

Specified by:
getName in interface IOCBeanDef<T>
Returns:
the name of the bean. If the bean does not have a name, returns null.

isConcrete

public boolean isConcrete()
Description copied from interface: IOCBeanDef
Returns true if the bean is a concrete bean definition and not an interface or abstract type.

Specified by:
isConcrete in interface IOCBeanDef<T>
Returns:
true if concrete.

getQualifiers

public Set<Annotation> getQualifiers()
Returns a set of qualifiers associated with this bean

Specified by:
getQualifiers in interface IOCBeanDef<T>
Returns:
A set of qualifiers. Returns an empty set if none.

matches

public boolean matches(Set<Annotation> annotations)
Returns true if the underlying bean contains all of the annotations specified.

Specified by:
matches in interface IOCBeanDef<T>
Parameters:
annotations - a set of annotations to compare
Returns:
true if matches

toString

public String toString()
Overrides:
toString in class Object

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.