public class ContextBuilder.ContextNutDaoBuilder extends ContextBuilder.ContextGenericBuilder
Inner class to configure a DAO builder.
| Constructor and Description |
|---|
ContextBuilder.ContextNutDaoBuilder(String id,
com.github.wuic.context.ContextBuilder.NutDaoRegistration registration)
Builds a new instance with an existing registration.
|
ContextBuilder.ContextNutDaoBuilder(String id,
String type)
Builds a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ContextBuilder.ContextNutDaoBuilder |
property(String key,
Object value)
Configures the given property.
|
ContextBuilder.ContextNutDaoBuilder |
proxyPathForDao(String path,
String id)
Specifies a path to proxy to a DAO.
|
ContextBuilder.ContextNutDaoBuilder |
proxyPathForNut(String path,
Nut nut)
Specifies a path to proxy to a nut.
|
ContextBuilder.ContextNutDaoBuilder |
proxyRootPath(String path)
Specifies a root path for paths to proxy.
|
ContextBuilder |
toContext()
Injects in the enclosing builder the component with its settings and return it.
|
getId, getPropertiespublic ContextBuilder.ContextNutDaoBuilder(String id, String type)
Builds a new instance.
id - the builder IDtype - the builder typepublic ContextBuilder.ContextNutDaoBuilder(String id, com.github.wuic.context.ContextBuilder.NutDaoRegistration registration)
Builds a new instance with an existing registration.
id - the builder IDregistration - the registrationpublic ContextBuilder.ContextNutDaoBuilder proxyRootPath(String path)
Specifies a root path for paths to proxy.
path - the root pathpublic ContextBuilder.ContextNutDaoBuilder proxyPathForDao(String path, String id)
Specifies a path to proxy to a DAO.
path - the pathid - the DAO idpublic ContextBuilder.ContextNutDaoBuilder proxyPathForNut(String path, Nut nut)
Specifies a path to proxy to a nut.
path - the pathnut - the nutpublic ContextBuilder.ContextNutDaoBuilder property(String key, Object value)
Configures the given property.
property in class ContextBuilder.ContextGenericBuilderkey - the property keyvalue - the property valuepublic 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
toContext in class ContextBuilder.ContextGenericBuilderCopyright © 2012-2015. All Rights Reserved.