public class Dependency extends Object
Constructor and Description |
---|
Dependency(BeanConfig beanConfig)
Creates instance of class.
|
Modifier and Type | Method and Description |
---|---|
BeanConfig |
getBeanConfig()
Returns definition of bean.
|
String |
getBeanName()
Returns name of dependent bean.
|
Field |
getField()
Returns field to be filled by dependency.
|
Type |
getGenericType() |
Class<?> |
getType()
Returns type of wanted bean.
|
boolean |
isNullAllowed()
Checks if empty value may be injected.
|
void |
setBeanName(String beanId) |
void |
setField(Field field) |
void |
setGenericType(Type genericType) |
void |
setNullAllowed(boolean nullAllowed) |
void |
setType(Class<?> type) |
String |
toString() |
public Dependency(BeanConfig beanConfig)
beanConfig
- definition of bean.public BeanConfig getBeanConfig()
public String getBeanName()
null
if name is not specified.public void setBeanName(String beanId)
public Field getField()
public void setField(Field field)
public Type getGenericType()
public void setGenericType(Type genericType)
public Class<?> getType()
public void setType(Class<?> type)
public boolean isNullAllowed()
true
if dependency is optional.public void setNullAllowed(boolean nullAllowed)
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.