|
||||||||||
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<com.google.gdata.data.ExtensionProfile> |
extProfThreadLocal
|
Constructor Summary | |
---|---|
ProvidedServiceConfig()
Default constructor to instantiate via reflection |
Method Summary | ||
---|---|---|
void |
destroy()
releases all dependencies and resources |
|
Class |
getEntryType()
|
|
com.google.gdata.data.ExtensionProfile |
getExtensionProfile()
|
|
Class |
getFeedType()
|
|
IndexSchema |
getIndexSchema()
|
|
String |
getName()
|
|
int |
getPoolSize()
|
|
Templates |
getTransformTemplate()
|
|
void |
setEntryType(Class entryType)
|
|
void |
setExtensionProfile(com.google.gdata.data.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<com.google.gdata.data.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 ProvidedService
ProvidedService.getFeedType()
public void setFeedType(Class feedType)
feedType
- The feedType to set.public com.google.gdata.data.ExtensionProfile getExtensionProfile()
getExtensionProfile
in interface ProvidedService
ProvidedService.getExtensionProfile()
public void setExtensionProfile(com.google.gdata.data.ExtensionProfile extensionProfil)
extensionProfil
- -
the extension profile for this feed configurationpublic <E extends com.google.gdata.data.ExtensionProfile> void setExtensionProfileClass(Class<E> extensionProfileClass) throws InstantiationException, IllegalAccessException
E
- extensionProfileClass
-
InstantiationException
IllegalAccessException
public Class getEntryType()
getEntryType
in interface ProvidedService
ProvidedService.getEntryType()
public void setEntryType(Class entryType)
entryType
- public String getName()
getName
in interface ProvidedService
ProvidedService.getName()
public void setName(String serviceName)
serviceName
- public void destroy()
ProvidedService
destroy
in interface ProvidedService
ProvidedService.destroy()
public void visiteInitialize()
ScopeVisitor
visiteInitialize
in interface ScopeVisitor
ScopeVisitor.visiteInitialize()
public void visiteDestroy()
ScopeVisitor
visiteDestroy
in interface ScopeVisitor
ScopeVisitor.visiteDestroy()
public IndexSchema getIndexSchema()
getIndexSchema
in interface ProvidedService
public void setIndexSchema(IndexSchema indexSchema)
indexSchema
- The indexSchema to set.public Templates getTransformTemplate()
getTransformTemplate
in interface ProvidedService
ProvidedService.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 |