public class BeanConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BeanConfig.Source |
static class |
BeanConfig.State
State of bean.
|
Modifier and Type | Method and Description |
---|---|
void |
addRegisteredBean(BeanConfig beanConfig) |
void |
addRegisteredBy(BeanConfig beanConfig) |
boolean |
equals(Object obj) |
protected String |
getBeanInstanceName() |
String |
getBeanName()
Returns name of bean.
|
Class<?> |
getClazz()
Returns class of bean.
|
BeanConfig |
getFactory()
Return factory of bean.
|
Map<Field,Dependency> |
getFieldDependencies()
Returns map of dependencies.
|
Kernel |
getKernel()
Returns
Kernel managing this bean. |
Set<BeanConfig> |
getRegisteredBeans()
List of beans registered by registration of this bean - related to
Bean::parent . |
Set<BeanConfig> |
getRegisteredBy()
Set of beans which caused registration of this bean - related to
Bean::parent . |
BeanConfig.Source |
getSource()
Returns information about source of the bean registration (annotation, code, config, etc.)
|
BeanConfig.State |
getState()
Returns state of bean.
|
int |
hashCode() |
boolean |
isExportable()
Checks if bean may be visible in child Kernels.
|
boolean |
isPinned()
Returns information if bean in pinned.
|
void |
removeRegisteredBean(BeanConfig beanConfig) |
boolean |
removeRegisteredBy(BeanConfig beanConfig) |
protected void |
setBeanInstanceName(String beanInstanceName) |
void |
setPinned(boolean pinned) |
String |
toString() |
public String getBeanName()
public Class<?> getClazz()
public BeanConfig getFactory()
null
if default factory is used.public Map<Field,Dependency> getFieldDependencies()
public BeanConfig.State getState()
public boolean isExportable()
true
if beans will be visible in child Kernel (other Kernels deployed as beans to current
Kernel).public boolean isPinned()
public void setPinned(boolean pinned)
public BeanConfig.Source getSource()
public Set<BeanConfig> getRegisteredBeans()
Bean::parent
.public void addRegisteredBean(BeanConfig beanConfig)
public void removeRegisteredBean(BeanConfig beanConfig)
public void addRegisteredBy(BeanConfig beanConfig)
public boolean removeRegisteredBy(BeanConfig beanConfig)
public Set<BeanConfig> getRegisteredBy()
Bean::parent
.protected String getBeanInstanceName()
protected void setBeanInstanceName(String beanInstanceName)
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.