|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jfacets.JFacets
public class JFacets
Top-level class for clients : used for retrieving facets at run time (see the getFacet(...) methods). The lifecycle of instances of this class goes like :
facetRepository to be used for facet lookupafterPropertiesSet init methodJFacetsBuilder.
| Constructor Summary | |
|---|---|
JFacets()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
To be invoked after all props have been set. |
void |
clearCache()
Clears the profiles cache |
String |
dumpFacetsAsXml()
Dump all facets as an XML facet descriptor (utility method, can be handy sometimes to get a list of all facet definitions). |
Object |
getFacet(String facetName,
String profileId)
Retrieves a facet for passed parameters. |
Object |
getFacet(String facetName,
String profileId,
Object targetObject)
Retrieves a facet for passed parameters (uses targetObject's class to
retrieve the facet). |
Object |
getFacet(String facetName,
String profileId,
Object targetObject,
Class targetObjectClass)
Retrieves a facet for passed parameters (uses targetObjectClass class to
retrieve the facet, so targetObject can be null). |
IFacetRepository |
getFacetRepository()
|
String |
getFallbackProfileId()
|
protected IProfile |
getProfile(String profileId)
Retrieve a profile for passed ID. |
IProfileRepository |
getProfileRepository()
|
boolean |
isUseProfilesCache()
|
void |
setFacetRepository(IFacetRepository facetRepository)
|
void |
setFallbackProfileId(String fallbackProfileId)
|
void |
setUseProfilesCache(boolean useProfilesCache)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFacets()
| Method Detail |
|---|
protected IProfile getProfile(String profileId)
null if no such profilepublic void clearCache()
public Object getFacet(String facetName,
String profileId,
Object targetObject,
Class targetObjectClass)
targetObjectClass class to
retrieve the facet, so targetObject can be null).
facetName - The name of the facetprofileId - The id of the profiletargetObject - The target objecttargetObjectClass - The target object's class to be used to retrieve the facet
null if not found.
public Object getFacet(String facetName,
String profileId,
Object targetObject)
targetObject's class to
retrieve the facet).
facetName - The name of the facetprofileId - The id of the profiletargetObject - The target object
null if not found.
public Object getFacet(String facetName,
String profileId)
facetName - The name of the facetprofileId - The id of the profile
null if not found.public IFacetRepository getFacetRepository()
public void setFacetRepository(IFacetRepository facetRepository)
public IProfileRepository getProfileRepository()
public String getFallbackProfileId()
public void setFallbackProfileId(String fallbackProfileId)
public void afterPropertiesSet()
public boolean isUseProfilesCache()
public void setUseProfilesCache(boolean useProfilesCache)
public String dumpFacetsAsXml()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||