|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jfacets.JFacetsBuilder
public class JFacetsBuilder
Builder that eases creation and wiring of the JFacets bean when not relying on an
external IoC container.
Typical usage looks like this :
jFacets = new JFacetsBuilder(
new SimpleProfileRepository(),
new FacetDescriptorManager("/test-instance-facets.xml")).
build();
| Constructor Summary | |
|---|---|
JFacetsBuilder(IProfileRepository profileRepository,
IFacetDescriptorManager facetDescriptorManager)
Create the builder with mandatory parameters |
|
| Method Summary | |
|---|---|
JFacets |
build()
Builds JFacets |
JFacetsBuilder |
setFacetContextFactory(IFacetContextFactory facetContextFactory)
Set the facet context factory (defaults to DefaultFacetContextFactory |
JFacetsBuilder |
setFacetFactory(IFacetFactory facetFactory)
Set the facet factory (defaults to DefaultFacetFactory |
JFacetsBuilder |
setFallbackProfileId(java.lang.String fallbackProfileId)
Set the fallback profile ID |
JFacetsBuilder |
setUseProfilesCache(boolean useProfilesCache)
Use cache for profiles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFacetsBuilder(IProfileRepository profileRepository,
IFacetDescriptorManager facetDescriptorManager)
profileRepository - the profile repository to be usedfacetDescriptorManager - the facet descriptor manager to be used| Method Detail |
|---|
public JFacetsBuilder setFacetFactory(IFacetFactory facetFactory)
DefaultFacetFactory
facetFactory - the Facet Factory to be used
public JFacetsBuilder setFacetContextFactory(IFacetContextFactory facetContextFactory)
DefaultFacetContextFactory
facetContextFactory - the Facet Context Factory to be used
public JFacets build()
public JFacetsBuilder setFallbackProfileId(java.lang.String fallbackProfileId)
fallbackProfileId - the fallback profile ID
public JFacetsBuilder setUseProfilesCache(boolean useProfilesCache)
useProfilesCache - true if you want to use the built-in profiles cache, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||