public abstract class ContextBuilder.ContextGenericBuilder extends Object
Inner class to configure a generic component.
Constructor and Description |
---|
ContextBuilder.ContextGenericBuilder(String id)
Builds a new component identified by the given ID.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getId()
Gets the ID.
|
protected Map<String,Object> |
getProperties()
Gets the properties
|
abstract ContextBuilder.ContextGenericBuilder |
property(String key,
Object value)
Configures the given property.
|
abstract ContextBuilder |
toContext()
Injects in the enclosing builder the component with its settings and return it.
|
public ContextBuilder.ContextGenericBuilder(String id)
Builds a new component identified by the given ID.
id
- the IDprotected String getId()
Gets the ID.
protected Map<String,Object> getProperties()
Gets the properties
public abstract ContextBuilder.ContextGenericBuilder property(String key, Object value)
Configures the given property.
key
- the property keyvalue
- the property valuepublic abstract ContextBuilder toContext()
Injects in the enclosing builder the component with its settings and return it.
Throws an IllegalArgumentException
if a previously configured property is not supported
Copyright © 2012-2015. All Rights Reserved.