Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container.async
Class AbstractAsyncBean<T>

java.lang.Object
  extended by org.jboss.errai.ioc.client.container.async.AbstractAsyncBean<T>
All Implemented Interfaces:
AsyncBeanDef<T>
Direct Known Subclasses:
AsyncDependentBean

public abstract class AbstractAsyncBean<T>
extends Object
implements AsyncBeanDef<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
AbstractAsyncBean()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.ioc.client.container.async.AsyncBeanDef
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

AbstractAsyncBean

public AbstractAsyncBean()
Method Detail

getType

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

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

getBeanClass

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

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

getName

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

Specified by:
getName in interface AsyncBeanDef<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: AsyncBeanDef
Returns true if the bean is a concrete bean definition and not an interface or abstract type.

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

getQualifiers

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

Specified by:
getQualifiers in interface AsyncBeanDef<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 AsyncBeanDef<T>
Parameters:
annotations - a set of annotations to compare
Returns:
true if matches

Errai 3.0.1-SNAPSHOT

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