Package de.uplanet.lucy.server.binding
Interface IBindingProcessor
-
public interface IBindingProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canValueBindEarly(IBindingKey p_binding)
boolean
canValueBindLate(IBindingKey p_binding)
de.uplanet.lucy.server.binding.IAppointmentBindingTypeProcessor
getAppointmentBindingTypeProcessor()
de.uplanet.lucy.server.binding.IBindingTypeProcessor
getBindingTypeProcessor(IBindingKey p_binding)
de.uplanet.lucy.server.binding.IContainerBindingTypeProcessor
getContainerBindingTypeProcessor()
de.uplanet.lucy.server.binding.IControlBindingTypeProcessor
getControlBindingTypeProcessor()
de.uplanet.lucy.server.binding.IRequestBindingTypeProcessor
getRequestBindingTypeProcessor()
de.uplanet.lucy.server.binding.IResourceBindingTypeProcessor
getResourceBindingTypeProcessor()
de.uplanet.lucy.server.rtcache.IRtCache
getRtCache()
de.uplanet.lucy.server.binding.ISessionBindingTypeProcessor
getSessionBindingTypeProcessor()
de.uplanet.lucy.server.binding.ISharedStateBindingTypeProcessor
getSharedStateBindingTypeProcessor()
de.uplanet.lucy.server.binding.IStateBindingTypeProcessor
getStateBindingTypeProcessor()
de.uplanet.lucy.server.binding.ISystemPropertyBindingTypeProcessor
getSystemPropertyBindingTypeProcessor()
de.uplanet.lucy.server.binding.ITargetArgumentBindingTypeProcessor
getTargetArgumentBindingTypeProcessor()
de.uplanet.lucy.server.binding.IUserBindingTypeProcessor
getUserBindingTypeProcessor()
IIxValue
getValue(IBindingContext p_ctx, IBindingKey p_binding)
IIxValue
getValue(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
boolean
hasValue(IBindingContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding.boolean
hasValue(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding.boolean
isValueAvailable(IBindingContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding.boolean
isValueAvailable(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding.Optional<IIxValue>
removeValue(IBindingContext p_ctx, IBindingKey p_binding)
Removes a value for the given binding.Optional<IIxValue>
setValue(IBindingContext p_ctx, IBindingKey p_binding, IIxValue p_value)
Adds or changed a value for the given binding.
-
-
-
Field Detail
-
BEAN_NAME
static final String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
IIxValue getValue(IBindingContext p_ctx, IBindingKey p_binding)
- Parameters:
p_ctx
- The binding context (notnull
)p_binding
- Tries to get the value. (notnull
)- Returns:
- Returns the value or an empty value if no value found for the given binding.
-
isValueAvailable
boolean isValueAvailable(IBindingContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding. The value returned by thegetValue(IBindingContext, IBindingKey)
could be empty (IIxValue.hasValue()
== false).- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if a value for the given binding is available otherwisefalse
will returned.
-
hasValue
boolean hasValue(IBindingContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding. The value returned by thegetValue(IBindingContext, IBindingKey)
not be empty (IIxValue.hasValue()
== true).- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if a value for the given binding is available and not empty otherwisefalse
will returned.
-
getValue
IIxValue getValue(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
- Parameters:
p_ctx
- The binding context (notnull
)p_binding
- Tries to get the value. (notnull
)- Returns:
- Returns the value or an empty value if no value found for the given binding.
-
isValueAvailable
boolean isValueAvailable(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding. The value returned by thegetValue(IBindingContext, IBindingKey)
could be empty (IIxValue.hasValue()
== false).- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if a value for the given binding is available otherwisefalse
will returned.
-
hasValue
boolean hasValue(de.uplanet.lucy.server.binding.IBindingTypeContext p_ctx, IBindingKey p_binding)
Checks if an value can resolved by the given binding. The value returned by thegetValue(IBindingContext, IBindingKey)
could be empty (IIxValue.hasValue()
== false).- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if a value for the given binding is available and not empty otherwisefalse
will returned.
-
setValue
Optional<IIxValue> setValue(IBindingContext p_ctx, IBindingKey p_binding, IIxValue p_value)
Adds or changed a value for the given binding. On a read only binding type a exception will be thrown on trying to change a value.- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding (notnull
)p_value
- The physical value, that would be set/changed for the binding.- Returns:
- Returns the optional old physical value.
-
removeValue
Optional<IIxValue> removeValue(IBindingContext p_ctx, IBindingKey p_binding)
Removes a value for the given binding. On a read only binding type a exception will be thrown on trying to delete a existing value.- Parameters:
p_ctx
- The binding context (notnull
).p_binding
- The binding (notnull
)- Returns:
- Returns the optional old physical value.
-
getAppointmentBindingTypeProcessor
de.uplanet.lucy.server.binding.IAppointmentBindingTypeProcessor getAppointmentBindingTypeProcessor()
- Returns:
- Returns the appointment binding type processor (not
null
).
-
getControlBindingTypeProcessor
de.uplanet.lucy.server.binding.IControlBindingTypeProcessor getControlBindingTypeProcessor()
- Returns:
- Returns the update control binding type processor (not
null
).
-
getSystemPropertyBindingTypeProcessor
de.uplanet.lucy.server.binding.ISystemPropertyBindingTypeProcessor getSystemPropertyBindingTypeProcessor()
- Returns:
- Returns the system property binding type processor
-
getResourceBindingTypeProcessor
de.uplanet.lucy.server.binding.IResourceBindingTypeProcessor getResourceBindingTypeProcessor()
- Returns:
- Returns the resource binding type processor
-
getRequestBindingTypeProcessor
de.uplanet.lucy.server.binding.IRequestBindingTypeProcessor getRequestBindingTypeProcessor()
- Returns:
- Returns the request binding type processor
-
getSessionBindingTypeProcessor
de.uplanet.lucy.server.binding.ISessionBindingTypeProcessor getSessionBindingTypeProcessor()
- Returns:
- Returns the session binding type processor
-
getSharedStateBindingTypeProcessor
de.uplanet.lucy.server.binding.ISharedStateBindingTypeProcessor getSharedStateBindingTypeProcessor()
- Returns:
- Returns the shared state binding type processor
-
getUserBindingTypeProcessor
de.uplanet.lucy.server.binding.IUserBindingTypeProcessor getUserBindingTypeProcessor()
- Returns:
- Returns the user binding type processor
-
getStateBindingTypeProcessor
de.uplanet.lucy.server.binding.IStateBindingTypeProcessor getStateBindingTypeProcessor()
- Returns:
- Returns the state binding type processor
-
getTargetArgumentBindingTypeProcessor
de.uplanet.lucy.server.binding.ITargetArgumentBindingTypeProcessor getTargetArgumentBindingTypeProcessor()
- Returns:
- Returns the state binding type processor
-
getRtCache
de.uplanet.lucy.server.rtcache.IRtCache getRtCache()
- Returns:
- Returns the RTCache instance (not
null
)
-
getContainerBindingTypeProcessor
de.uplanet.lucy.server.binding.IContainerBindingTypeProcessor getContainerBindingTypeProcessor()
- Returns:
- Returns the read container type processor (not
null
)
-
canValueBindEarly
boolean canValueBindEarly(IBindingKey p_binding)
- Parameters:
p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if the given binding can be used for early binding otherwisefalse
.
-
canValueBindLate
boolean canValueBindLate(IBindingKey p_binding)
- Parameters:
p_binding
- The binding to check (notnull
)- Returns:
- Returns
true
if the given binding can be used for a late binding otherwisefalse
.
-
getBindingTypeProcessor
de.uplanet.lucy.server.binding.IBindingTypeProcessor getBindingTypeProcessor(IBindingKey p_binding)
- Parameters:
p_binding
- Tries to get the value. (notnull
)- Returns:
- The binding type processor.
-
-