public class ValueFacetFactory extends FacetFactoryAbstract implements IsisConfigurationAware, AuthenticationSessionProviderAware, AdapterManagerAware, ServicesInjectorAware, RuntimeContextAware
Value annotation.
As a result, will always install the following facets:
TitleFacet - based on the title() method if present,
otherwise uses toString()IconFacet - based on the iconName() method if present,
otherwise derived from the class nameIn addition, the following facets may be installed:
ParseableFacet - if a Parser has been specified
explicitly in the annotation (or is picked up through an external
configuration file)EncodableFacet - if an EncoderDecoder has been specified
explicitly in the annotation (or is picked up through an external
configuration file)ImmutableFacet - if specified explicitly in the annotation
EqualByContentFacet - if specified explicitly in the annotation
Note that ParentedFacet is not installed.
FacetFactory.AbstractProcessContext<T extends FacetHolder>, FacetFactory.ProcessClassContext, FacetFactory.ProcessContextWithMetadataProperties<T extends FacetHolder>, FacetFactory.ProcessMethodContext, FacetFactory.ProcessParameterContext| Constructor and Description |
|---|
ValueFacetFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected ValueSemanticsProviderContext |
createValueSemanticsProviderContext() |
AdapterManager |
getAdapterManager() |
AuthenticationSessionProvider |
getAuthenticationSessionProvider() |
IsisConfiguration |
getIsisConfiguration() |
ServicesInjector |
getServicesInjector() |
void |
process(FacetFactory.ProcessClassContext processClassContaxt)
Process the class, and return the correctly setup annotation if present.
|
void |
setAdapterManager(AdapterManager adapterManager) |
void |
setAuthenticationSessionProvider(AuthenticationSessionProvider authenticationSessionProvider) |
void |
setConfiguration(IsisConfiguration configuration)
Inject the
IsisConfiguration into the component. |
void |
setRuntimeContext(RuntimeContext runtimeContext) |
void |
setServicesInjector(ServicesInjector dependencyInjector) |
getFeatureTypes, getSpecificationLoader, process, processParams, setSpecificationLookuppublic ValueFacetFactory()
public void process(FacetFactory.ProcessClassContext processClassContaxt)
FacetFactoryprocess in interface FacetFactoryprocess in class FacetFactoryAbstractprotected ValueSemanticsProviderContext createValueSemanticsProviderContext()
public IsisConfiguration getIsisConfiguration()
public void setConfiguration(IsisConfiguration configuration)
IsisConfigurationAwareIsisConfiguration into the component.setConfiguration in interface IsisConfigurationAwarepublic AuthenticationSessionProvider getAuthenticationSessionProvider()
public void setAuthenticationSessionProvider(AuthenticationSessionProvider authenticationSessionProvider)
setAuthenticationSessionProvider in interface AuthenticationSessionProviderAwarepublic AdapterManager getAdapterManager()
public void setAdapterManager(AdapterManager adapterManager)
setAdapterManager in interface AdapterManagerAwarepublic ServicesInjector getServicesInjector()
public void setServicesInjector(ServicesInjector dependencyInjector)
setServicesInjector in interface ServicesInjectorAwarepublic void setRuntimeContext(RuntimeContext runtimeContext)
setRuntimeContext in interface RuntimeContextAwareCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.