Rio Project 4.2 API Documentation



org.rioproject.entry
Class UIDescriptorFactory

java.lang.Object
  extended by org.rioproject.entry.UIDescriptorFactory

public class UIDescriptorFactory
extends Object

A helper utility that creates a UIDescriptor as part of the ServiceUI project.

Author:
Dennis Reedy

Constructor Summary
UIDescriptorFactory()
           
 
Method Summary
static UIDescriptor getJComponentDesc(String codebase, String[] jars, String className)
          Get a UIDescriptor for a JComponent
static UIDescriptor getJComponentDesc(String codebase, String[] jars, String className, String algorithm)
          Get a UIDescriptor for a JComponent using HTTPMD support
static UIDescriptor getJComponentDesc(String codebase, String jarName, String className)
          Get a UIDescriptor for a JComponent
static UIDescriptor getJComponentDesc(String codebase, String jarName, String className, String algorithm)
          Get a UIDescriptor for a JComponent using HTTPMD support
static UIDescriptor getJFrameDesc(String codebase, String[] jars, String className)
          Get a UIDescriptor for a JFrame
static UIDescriptor getJFrameDesc(String codebase, String[] jars, String className, String algorithm)
          Get a UIDescriptor for a JFrame using HTTPMD support
static UIDescriptor getJFrameDesc(String codebase, String jarName, String className)
          Get a UIDescriptor for a JFrame
static UIDescriptor getJFrameDesc(String codebase, String jarName, String className, String algorithm)
          Get a UIDescriptor for a JFrame using HTTPMD support
static UIDescriptor getUIDescriptor(String role, net.jini.lookup.ui.factory.JComponentFactory factory)
          Get a UIDescriptor for a JComponentFactory
static UIDescriptor getUIDescriptor(String role, net.jini.lookup.ui.factory.JDialogFactory factory)
          Get a UIDescriptor for a JDialogFactory
static UIDescriptor getUIDescriptor(String role, net.jini.lookup.ui.factory.JFrameFactory factory)
          Get a UIDescriptor for a JFrameFactory
static UIDescriptor getUIDescriptor(String role, net.jini.lookup.ui.factory.JWindowFactory factory)
           
static UIDescriptor getUIDescriptor(String role, String typeName, String codebase, String[] jars, String className, boolean computeHttpmd, String algorithm)
          Get a UIDescriptor
static UIDescriptor getUIDescriptor(String role, String typeName, String codebase, String jarName, String className)
          Get a UIDescriptor
static UIDescriptor getUIDescriptor(String role, String typeName, String codebase, String jarName, String className, boolean computeHttpmd, String algorithm)
          Get a UIDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIDescriptorFactory

public UIDescriptorFactory()
Method Detail

getJComponentDesc

public static UIDescriptor getJComponentDesc(String codebase,
                                             String jarName,
                                             String className)
                                      throws IOException
Get a UIDescriptor for a JComponent

Parameters:
codebase - The codebase
jarName - The jar name
className - The classname
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getJComponentDesc

public static UIDescriptor getJComponentDesc(String codebase,
                                             String[] jars,
                                             String className)
                                      throws IOException
Get a UIDescriptor for a JComponent

Parameters:
codebase - The codebase
jars - The jars to use
className - The classname
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getJComponentDesc

public static UIDescriptor getJComponentDesc(String codebase,
                                             String jarName,
                                             String className,
                                             String algorithm)
                                      throws IOException,
                                             NoSuchAlgorithmException
Get a UIDescriptor for a JComponent using HTTPMD support

Parameters:
codebase - The codebase
jarName - The jar name
className - The classname
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getJComponentDesc

public static UIDescriptor getJComponentDesc(String codebase,
                                             String[] jars,
                                             String className,
                                             String algorithm)
                                      throws IOException,
                                             NoSuchAlgorithmException
Get a UIDescriptor for a JComponent using HTTPMD support

Parameters:
codebase - The codebase
jars - The jars to use
className - The classname
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getJFrameDesc

public static UIDescriptor getJFrameDesc(String codebase,
                                         String jarName,
                                         String className)
                                  throws IOException
Get a UIDescriptor for a JFrame

Parameters:
codebase - The codebase
jarName - The jar name
className - The classname
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getJFrameDesc

public static UIDescriptor getJFrameDesc(String codebase,
                                         String[] jars,
                                         String className)
                                  throws IOException
Get a UIDescriptor for a JFrame

Parameters:
codebase - The codebase
jars - The jars to use
className - The classname
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getJFrameDesc

public static UIDescriptor getJFrameDesc(String codebase,
                                         String jarName,
                                         String className,
                                         String algorithm)
                                  throws IOException,
                                         NoSuchAlgorithmException
Get a UIDescriptor for a JFrame using HTTPMD support

Parameters:
codebase - The codebase
jarName - The jar name
className - The classname
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getJFrameDesc

public static UIDescriptor getJFrameDesc(String codebase,
                                         String[] jars,
                                         String className,
                                         String algorithm)
                                  throws IOException,
                                         NoSuchAlgorithmException
Get a UIDescriptor for a JFrame using HTTPMD support

Parameters:
codebase - The codebase
jars - The jars to use
className - The classname
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           String typeName,
                                           String codebase,
                                           String jarName,
                                           String className)
                                    throws IOException
Get a UIDescriptor

Parameters:
role - The role
typeName - The type
codebase - The codebase
jarName - The jar name
className - The classname
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           String typeName,
                                           String codebase,
                                           String jarName,
                                           String className,
                                           boolean computeHttpmd,
                                           String algorithm)
                                    throws NoSuchAlgorithmException,
                                           IOException
Get a UIDescriptor

Parameters:
role - The role
typeName - The type
codebase - The codebase
jarName - The jar name
className - The classname
computeHttpmd - Whether to compute message digest
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           String typeName,
                                           String codebase,
                                           String[] jars,
                                           String className,
                                           boolean computeHttpmd,
                                           String algorithm)
                                    throws NoSuchAlgorithmException,
                                           IOException
Get a UIDescriptor

Parameters:
role - The role
typeName - The type
codebase - The codebase
jars - The jars to use
className - The classname
computeHttpmd - Whether to compute message digest
algorithm - The algorithm to use
Returns:
A UIDescriptor
Throws:
NoSuchAlgorithmException - If the algorithm to use is not found
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           net.jini.lookup.ui.factory.JComponentFactory factory)
                                    throws IOException
Get a UIDescriptor for a JComponentFactory

Parameters:
role - The role
factory - A JComponentFactory
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           net.jini.lookup.ui.factory.JDialogFactory factory)
                                    throws IOException
Get a UIDescriptor for a JDialogFactory

Parameters:
role - The role
factory - A JDialogFactory
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           net.jini.lookup.ui.factory.JFrameFactory factory)
                                    throws IOException
Get a UIDescriptor for a JFrameFactory

Parameters:
role - The role
factory - A JFrameFactory
Returns:
A UIDescriptor
Throws:
IOException - if the MarshalledObject cannot be created

getUIDescriptor

public static UIDescriptor getUIDescriptor(String role,
                                           net.jini.lookup.ui.factory.JWindowFactory factory)
                                    throws IOException
Throws:
IOException

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.