org.java.plugin.extension
Class GuicyObjectFactory

java.lang.Object
  extended by org.java.plugin.ObjectFactory
      extended by org.java.plugin.standard.StandardObjectFactory
          extended by org.java.plugin.extension.GuicyObjectFactory

public class GuicyObjectFactory
extends StandardObjectFactory

Author: thasso Date: May 8, 2009


Field Summary
 
Fields inherited from class org.java.plugin.standard.StandardObjectFactory
config, log, PACKAGE_NAME
 
Constructor Summary
GuicyObjectFactory(com.google.inject.Injector injector)
           
 
Method Summary
protected  java.lang.Object createClassInstance(java.lang.String className)
           
protected  PluginLifecycleHandler createLifecycleHandler()
          Creates new instance of plug-in life cycle handler implementation class using standard discovery algorithm to determine which handler implementation class should be instantiated.
 PluginManager createManager(PluginRegistry registry, PathResolver pathResolver)
          Creates new instance of plug-in manager.
 PathResolver createPathResolver()
          Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.
 PluginRegistry createRegistry()
          Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.
 
Methods inherited from class org.java.plugin.standard.StandardObjectFactory
configure, getImplClassName
 
Methods inherited from class org.java.plugin.ObjectFactory
createManager, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuicyObjectFactory

@Inject
public GuicyObjectFactory(com.google.inject.Injector injector)
Method Detail

createClassInstance

protected java.lang.Object createClassInstance(java.lang.String className)
                                        throws java.lang.InstantiationException,
                                               java.lang.IllegalAccessException,
                                               java.lang.ClassNotFoundException
Overrides:
createClassInstance in class StandardObjectFactory
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

createRegistry

public PluginRegistry createRegistry()
Description copied from class: ObjectFactory
Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.

Overrides:
createRegistry in class StandardObjectFactory
Returns:
new registry instance
See Also:
ObjectFactory.createRegistry()

createPathResolver

public PathResolver createPathResolver()
Description copied from class: ObjectFactory
Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.

Overrides:
createPathResolver in class StandardObjectFactory
Returns:
new path resolver instance
See Also:
ObjectFactory.createPathResolver()

createLifecycleHandler

protected PluginLifecycleHandler createLifecycleHandler()
Description copied from class: StandardObjectFactory
Creates new instance of plug-in life cycle handler implementation class using standard discovery algorithm to determine which handler implementation class should be instantiated.

Overrides:
createLifecycleHandler in class StandardObjectFactory
Returns:
new plug-in life cycle handler instance

createManager

public PluginManager createManager(PluginRegistry registry,
                                   PathResolver pathResolver)
Description copied from class: ObjectFactory
Creates new instance of plug-in manager.

Overrides:
createManager in class StandardObjectFactory
Returns:
new plug-in manager instance
See Also:
ObjectFactory.createManager( org.java.plugin.registry.PluginRegistry, org.java.plugin.PathResolver)


Copyright © 2010. All Rights Reserved.