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 ResourceTypepublic Module getOwnerModule()
public Guard getGuard()
getGuard in interface ResourceTypepublic Set<String> getFacets()
getFacets in interface ResourceTypepublic boolean hasFacet(String facet)
hasFacet in interface ResourceTypepublic String getName()
getName in interface ResourceTypepublic Class<Resource> getResourceClass()
getResourceClass in interface ResourceTypepublic <T extends Resource> T newInstance(Class<T> typeof, WebContext context)
newInstance in interface ResourceTypepublic boolean isEnabled(Resource ctx)
isEnabled in interface ResourceTypepublic boolean isDerivedFrom(String type)
isDerivedFrom in interface ResourceTypepublic void flushCache()
flushCache in interface ResourceTypeprotected void loadGuardFromAnnoation(Class<?> c)
public ScriptFile getView(Module module, String name)
ResourceTypegetView in interface ResourceTypepublic 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.