|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.gdata.server.registry.ProvidedServiceConfig
public class ProvidedServiceConfig
Standard implementation of
ProvidedService to be used
inside the
GDataServerRegistry
ExtensionProfiles are used to generate and parse xml by the gdata api. For that case all methods are synchronized. This will slow down the application when performing lots of xml generation concurrently. For that case the extensionProfile for a specific service will be pooled and reused.
| Field Summary | |
|---|---|
protected ThreadLocal<ExtensionProfile> |
extProfThreadLocal
|
| Constructor Summary | |
|---|---|
ProvidedServiceConfig()
Default constructor to instantiate via reflection |
|
| Method Summary | ||
|---|---|---|
void |
destroy()
releases all dependencies and resources |
|
Class |
getEntryType()
|
|
ExtensionProfile |
getExtensionProfile()
|
|
Class |
getFeedType()
|
|
IndexSchema |
getIndexSchema()
|
|
String |
getName()
|
|
int |
getPoolSize()
|
|
Templates |
getTransformTemplate()
|
|
void |
setEntryType(Class entryType)
|
|
void |
setExtensionProfile(ExtensionProfile extensionProfil)
|
|
|
setExtensionProfileClass(Class<E> extensionProfileClass)
TODO add comment |
|
void |
setFeedType(Class feedType)
|
|
void |
setIndexSchema(IndexSchema indexSchema)
|
|
void |
setName(String serviceName)
|
|
void |
setPoolSize(int poolSize)
|
|
void |
setXsltStylesheet(String filename)
Sets and creates the preview transformer xslt template to provide a html formate for feeds and entries. |
|
void |
visiteDestroy()
Visites the destory of the scope |
|
void |
visiteInitialize()
Visites the initialization of the scope |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ThreadLocal<ExtensionProfile> extProfThreadLocal
| Constructor Detail |
|---|
public ProvidedServiceConfig()
| Method Detail |
|---|
public int getPoolSize()
public void setPoolSize(int poolSize)
poolSize - The poolSize to set.public Class getFeedType()
getFeedType in interface ProvidedServiceProvidedService.getFeedType()public void setFeedType(Class feedType)
feedType - The feedType to set.public ExtensionProfile getExtensionProfile()
getExtensionProfile in interface ProvidedServiceProvidedService.getExtensionProfile()public void setExtensionProfile(ExtensionProfile extensionProfil)
extensionProfil - -
the extension profile for this feed configuration
public <E extends ExtensionProfile> void setExtensionProfileClass(Class<E> extensionProfileClass)
throws InstantiationException,
IllegalAccessException
E - extensionProfileClass -
InstantiationException
IllegalAccessExceptionpublic Class getEntryType()
getEntryType in interface ProvidedServiceProvidedService.getEntryType()public void setEntryType(Class entryType)
entryType - public String getName()
getName in interface ProvidedServiceProvidedService.getName()public void setName(String serviceName)
serviceName - public void destroy()
ProvidedService
destroy in interface ProvidedServiceProvidedService.destroy()public void visiteInitialize()
ScopeVisitor
visiteInitialize in interface ScopeVisitorScopeVisitor.visiteInitialize()public void visiteDestroy()
ScopeVisitor
visiteDestroy in interface ScopeVisitorScopeVisitor.visiteDestroy()public IndexSchema getIndexSchema()
getIndexSchema in interface ProvidedServicepublic void setIndexSchema(IndexSchema indexSchema)
indexSchema - The indexSchema to set.public Templates getTransformTemplate()
getTransformTemplate in interface ProvidedServiceProvidedService.getTransformTemplate()public void setXsltStylesheet(String filename)
filename - - the name of the file in the classpath
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||