jaxg 0.1dev

org.xml.graphics.helpers
Class XGProcessorFactoryProxy

java.lang.Object
  extended by org.xml.graphics.XGProcessorFactory
      extended by org.xml.graphics.helpers.XGProcessorFactoryProxy

public class XGProcessorFactoryProxy
extends XGProcessorFactory

This class is a proxy to other XGProcessorFactory implementations. It is responsible to set up the ClassLoader for a deployment package.

Author:
Jeremias Maerki
See Also:
XGProcessorFactory.newInstance(java.net.URL)

Constructor Summary
XGProcessorFactoryProxy(DeploymentPackage pkg)
           
XGProcessorFactoryProxy(java.net.URL packageFile)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Allows the user to retrieve specific attributes on the underlying implementation.
 boolean getFeature(java.lang.String name)
          Look up the value of a feature.
 XGProcessor newXGProcessor()
          Creates a new XGProcessor instance.
 XGProcessorHandler newXGProcessorHandler()
          Create a new XGProcessorHandler instance.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Allows the user to set specific attributes on the underlying implementation.
 
Methods inherited from class org.xml.graphics.XGProcessorFactory
newInstance, newInstance, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XGProcessorFactoryProxy

public XGProcessorFactoryProxy(java.net.URL packageFile)
                        throws java.io.IOException
Throws:
java.io.IOException

XGProcessorFactoryProxy

public XGProcessorFactoryProxy(DeploymentPackage pkg)
Method Detail

newXGProcessor

public XGProcessor newXGProcessor()
                           throws XGException
Description copied from class: XGProcessorFactory
Creates a new XGProcessor instance.

Specified by:
newXGProcessor in class XGProcessorFactory
Returns:
an XGProcessor
Throws:
XGException - if the XGProcessor cannot be instantiated
See Also:
XGProcessorFactory.newXGProcessor()

newXGProcessorHandler

public XGProcessorHandler newXGProcessorHandler()
                                         throws XGException
Description copied from class: XGProcessorFactory
Create a new XGProcessorHandler instance.

Specified by:
newXGProcessorHandler in class XGProcessorFactory
Returns:
an XGProcessorHandler
Throws:
XGException - if the XGProcessor cannot be instantiated
See Also:
XGProcessorFactory.newXGProcessorHandler()

getFeature

public boolean getFeature(java.lang.String name)
Description copied from class: XGProcessorFactory

Look up the value of a feature.

The feature name is any absolute URI.

Specified by:
getFeature in class XGProcessorFactory
Parameters:
name - The feature name, which is an absolute URI.
Returns:
The current state of the feature (true or false).
See Also:
XGProcessorFactory.getFeature(java.lang.String)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
                  throws java.lang.IllegalArgumentException
Description copied from class: XGProcessorFactory
Allows the user to set specific attributes on the underlying implementation. An attribute in this context is defined to be an option that the implementation provides.

Specified by:
setAttribute in class XGProcessorFactory
Parameters:
name - The name of the attribute.
value - The value of the attribute.
Throws:
java.lang.IllegalArgumentException - thrown if the underlying implementation doesn't recognize the attribute.
See Also:
XGProcessorFactory.setAttribute(java.lang.String, java.lang.Object)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
                              throws java.lang.IllegalArgumentException
Description copied from class: XGProcessorFactory
Allows the user to retrieve specific attributes on the underlying implementation.

Specified by:
getAttribute in class XGProcessorFactory
Parameters:
name - The name of the attribute.
Returns:
value The value of the attribute.
Throws:
java.lang.IllegalArgumentException - thrown if the underlying implementation doesn't recognize the attribute.
See Also:
XGProcessorFactory.getAttribute(java.lang.String)

jaxg 0.1dev

Copyright © 2004-2005 Jeremias Märki. All rights reserved.