public class ResourceConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXTERNAL_RESOURCE_PLURAL_NAME
Constants.
|
Constructor and Description |
---|
ResourceConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getIdProperty()
Get the id property of the resource.
|
String |
getName()
Get the resource name.
|
String |
getPluralName()
Get the resource plural name.
|
String |
getProvider()
Get the provider class name.
|
Class<? extends org.apache.ambari.view.ResourceProvider> |
getProviderClass(ClassLoader cl)
Get the resource provider class.
|
String |
getResource()
Get the resource class name
|
Class<?> |
getResourceClass(ClassLoader cl)
Get the resource class.
|
String |
getService()
Get the service class name.
|
Class<?> |
getServiceClass(ClassLoader cl)
Get the resource service class.
|
List<String> |
getSubResourceNames()
Get the list of sub-resource names.
|
boolean |
isExternal()
Determine whether the resource is external (does not use the API framework).
|
public static final String EXTERNAL_RESOURCE_PLURAL_NAME
public String getName()
public String getPluralName()
public String getIdProperty()
public List<String> getSubResourceNames()
public String getProvider()
public String getService()
public String getResource()
public Class<? extends org.apache.ambari.view.ResourceProvider> getProviderClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic boolean isExternal()
Copyright © 2022 Apache Software Foundation. All rights reserved.