public abstract class AbstractResourceType extends Object implements ResourceType
Modifier and Type | Field and Description |
---|---|
protected ClassProxy |
clazz |
protected com.sun.jersey.server.spi.component.ResourceComponentConstructor |
constructor |
protected WebEngine |
engine |
protected Set<String> |
facets |
protected Guard |
guard |
protected String |
name |
protected Module |
owner |
protected AbstractResourceType |
superType |
protected ConcurrentMap<String,ScriptFile> |
templateCache |
protected int |
visibility |
ROOT_TYPE_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractResourceType(WebEngine engine,
Module module,
AbstractResourceType superType,
String name,
ClassProxy clazz,
com.sun.jersey.server.spi.component.ResourceComponentConstructor constructor,
int visibility) |
Modifier and Type | Method and Description |
---|---|
protected ScriptFile |
findSkinTemplate(Module module,
String name) |
protected ScriptFile |
findTypeTemplate(Module module,
String name) |
ScriptFile |
findView(Module module,
String name) |
void |
flushCache() |
Set<String> |
getFacets() |
Guard |
getGuard() |
String |
getName() |
Module |
getOwnerModule() |
Class<Resource> |
getResourceClass() |
ResourceType |
getSuperType() |
ScriptFile |
getView(Module module,
String name)
Gets a view for this type in the context of the given module.
|
int |
getVisibility() |
boolean |
hasFacet(String facet) |
boolean |
isDerivedFrom(String type) |
boolean |
isEnabled(Resource ctx) |
protected abstract void |
loadAnnotations(AnnotationManager annoMgr) |
protected void |
loadGuardFromAnnoation(Class<?> c) |
<T extends Resource> |
newInstance(Class<T> typeof,
WebContext context) |
protected String |
resolveResourcePath(String className,
String fileName) |
String |
toString() |
protected final com.sun.jersey.server.spi.component.ResourceComponentConstructor constructor
protected int visibility
protected AbstractResourceType superType
protected volatile ClassProxy clazz
protected volatile ConcurrentMap<String,ScriptFile> templateCache
protected AbstractResourceType(WebEngine engine, Module module, AbstractResourceType superType, String name, ClassProxy clazz, com.sun.jersey.server.spi.component.ResourceComponentConstructor constructor, int visibility)
public int getVisibility()
protected abstract void loadAnnotations(AnnotationManager annoMgr)
public ResourceType getSuperType()
getSuperType
in interface ResourceType
public Module getOwnerModule()
public Guard getGuard()
getGuard
in interface ResourceType
public Set<String> getFacets()
getFacets
in interface ResourceType
public boolean hasFacet(String facet)
hasFacet
in interface ResourceType
public String getName()
getName
in interface ResourceType
public Class<Resource> getResourceClass()
getResourceClass
in interface ResourceType
public <T extends Resource> T newInstance(Class<T> typeof, WebContext context)
newInstance
in interface ResourceType
public boolean isEnabled(Resource ctx)
isEnabled
in interface ResourceType
public boolean isDerivedFrom(String type)
isDerivedFrom
in interface ResourceType
public void flushCache()
flushCache
in interface ResourceType
protected void loadGuardFromAnnoation(Class<?> c)
public ScriptFile getView(Module module, String name)
ResourceType
getView
in interface ResourceType
public ScriptFile findView(Module module, String name)
protected ScriptFile findSkinTemplate(Module module, String name)
protected ScriptFile findTypeTemplate(Module module, String name)
protected String resolveResourcePath(String className, String fileName)
Copyright © 2018 Nuxeo. All rights reserved.