BEAN
- the generic type of the Bean
.public class BeanAccessReadOnly<BEAN extends Bean> extends BeanAccessInstance<BEAN>
Modifier and Type | Field and Description |
---|---|
private BeanAccessBase<BEAN> |
delegate |
LOG
PROPERTY_TYPE
Constructor and Description |
---|
BeanAccessReadOnly(BeanFactoryImpl beanFactory,
BeanAccessPrototype<BEAN> prototype,
BeanAccessBase<BEAN> delegate)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected WritableProperty<?> |
createProperty(BeanPrototypeProperty prototypeProperty) |
boolean |
isReadOnly() |
addPropertyValidator, addPropertyValidators, createProperties, createProperty, createProperty, getAliases, getDeclaredPropertyNames, getPackageName, getProperty, getProperty, getPropertyNameForAlias, getPropertyNames, getPrototype, getQualifiedName, getSimpleName, isDynamic, isPrototype, isVirtual, iterator
fromJson, fromJsonProperty, fromJsonUndefinedProperty, get, getBean, getBeanClass, getJsonUtil, getProperties, invoke, requireWritable, toJson
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProperty, getOrCreateProperty, getOrCreateProperty, getOrCreateProperty, getPropertyValue, getRequiredProperty, setPropertyValue, setPropertyValue, validate
forEach, spliterator
private final BeanAccessBase<BEAN extends Bean> delegate
public BeanAccessReadOnly(BeanFactoryImpl beanFactory, BeanAccessPrototype<BEAN> prototype, BeanAccessBase<BEAN> delegate)
prototype
- the BeanAccessPrototype
.beanFactory
- the owning BeanFactoryImpl
.delegate
- the original intercepter instance to adapt.protected WritableProperty<?> createProperty(BeanPrototypeProperty prototypeProperty)
createProperty
in class BeanAccessInstance<BEAN extends Bean>
prototypeProperty
- the BeanPrototypeProperty
.WritableProperty
instance
copied
from the given
BeanPrototypeProperty
.public boolean isReadOnly()
isReadOnly
in interface BeanAccess
isReadOnly
in class BeanAccessBase<BEAN extends Bean>
true
if this BeanAccess
belongs to a Bean
that is read-only (immutable),
false
otherwise.AbstractBeanFactory.getReadOnlyBean(Bean)
Copyright © 2001–2016 mmm-Team. All rights reserved.