Class ConsolePluginService
- java.lang.Object
-
- org.glassfish.admingui.plugin.ConsolePluginService
-
@Service public class ConsolePluginService extends Object
This class provides access to
IntegrationPoints.- Author:
- Ken Paulsen (ken.paulsen@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ConsolePluginService()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIntegrationPoint(org.glassfish.admingui.connector.IntegrationPoint point, String id)This method allows a newIntegrationPointto be added to the knownIntegrationPoints.voidaddIntegrationPoints(List<org.glassfish.admingui.connector.IntegrationPoint> points, String id)This method allows newIntegrationPoints to be added to the knownIntegrationPoints.org.glassfish.admingui.connector.IndexgetHelpIndex(String locale)This method returns a merged Table Of Contents for all found help sets for the given locale.org.glassfish.admingui.connector.TOCgetHelpTOC(String locale)This method returns a merged Table Of Contents for all found help sets for the given locale.List<org.glassfish.admingui.connector.IntegrationPoint>getIntegrationPoints(String type)This method returns theIntegrationPoints associated with the given type.ClassLoadergetModuleClassLoader(String moduleName)This method returns theClassLoaderassociated with the requested module.Map<String,List<URL>>getResources(String name)This method searches the classpath of all plugins for the requested resource and returns all instances of it (if any).protected voidinit()Initialize the availableIntegrationPoints.
-
-
-
Method Detail
-
init
protected void init()
Initialize the available
IntegrationPoints.
-
getHelpTOC
public org.glassfish.admingui.connector.TOC getHelpTOC(String locale)
This method returns a merged Table Of Contents for all found help sets for the given locale.
-
getHelpIndex
public org.glassfish.admingui.connector.Index getHelpIndex(String locale)
This method returns a merged Table Of Contents for all found help sets for the given locale.
-
getResources
public Map<String,List<URL>> getResources(String name)
This method searches the classpath of all plugins for the requested resource and returns all instances of it (if any). This method will NOT return
null, but may return an emptyList.
-
addIntegrationPoints
public void addIntegrationPoints(List<org.glassfish.admingui.connector.IntegrationPoint> points, String id)
This method allows new
IntegrationPoints to be added to the knownIntegrationPoints.
-
addIntegrationPoint
public void addIntegrationPoint(org.glassfish.admingui.connector.IntegrationPoint point, String id)This method allows a new
IntegrationPointto be added to the knownIntegrationPoints.
-
getIntegrationPoints
public List<org.glassfish.admingui.connector.IntegrationPoint> getIntegrationPoints(String type)
This method returns the
IntegrationPoints associated with the given type.- Parameters:
type- The type ofIntegrationPoints to retrieve.
-
getModuleClassLoader
public ClassLoader getModuleClassLoader(String moduleName)
This method returns the
ClassLoaderassociated with the requested module. If the requested module does not exist, has not been initialized, or does not contain any admin console extensions, this method will returnnull.- Parameters:
moduleName- The name of the module.- Returns:
null, or the module'sClassLoader.
-
-