public class WrappedInstance<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WrappedInstance.CardinalityException |
static class |
WrappedInstance.ResourceUnavailableException |
static class |
WrappedInstance.ValidationFailedException |
| Constructor and Description |
|---|
WrappedInstance(T instance,
Map<String,PropertyType.PropertyMethod> propertyMethods,
Set<Method> validationMethods) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCardinality(Set<PropertyType.PropertyStatement> propertyStatements)
The loader provides the distilled property statements from the RDF.
|
T |
getInstance()
Once satisfied, populated, and validated, the instance is ready to go.
|
void |
satisfyInterfaces(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest req)
The loader calls this as soon as the instance is created.
|
void |
setProperties(ConfigurationBeanLoader loader,
Collection<PropertyType.PropertyStatement> propertyStatements)
The loader provides the distilled property statements from the RDF, to
populate the instance.
|
void |
validate()
After the interfaces have been satisfied and the instance has been
populated, call any validation methods to see whether the instance is
viable.
|
public void satisfyInterfaces(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest req)
throws WrappedInstance.ResourceUnavailableException
public void checkCardinality(Set<PropertyType.PropertyStatement> propertyStatements) throws WrappedInstance.CardinalityException
public void setProperties(ConfigurationBeanLoader loader, Collection<PropertyType.PropertyStatement> propertyStatements) throws PropertyType.PropertyTypeException, ConfigurationBeanLoaderException
public void validate()
throws WrappedInstance.ValidationFailedException
public T getInstance()
Copyright © 2021. All rights reserved.