JTools

org.jtools.activate
Class SimpleStrategy

java.lang.Object
  extended by org.jtools.activate.SimpleStrategy
All Implemented Interfaces:
ClassnameStrategy, Domain.ExecuteCallback, InstantiateStrategy

public class SimpleStrategy
extends Object
implements ClassnameStrategy, InstantiateStrategy, Domain.ExecuteCallback


Constructor Summary
SimpleStrategy()
           
 
Method Summary
 Object cbDomainExecute(Domain domain, Object cbInfo, String naming, String[] args)
           
protected  Class forDomainName(org.jtools.activate.SimpleStrategy.ClassInfoHolder classInfoHolder)
           
 Class forName(ClassInfo classInfo, Object loaderContext, int retry)
           
protected  Class forName(org.jtools.activate.SimpleStrategy.ClassInfoHolder classInfoHolder)
           
protected  String getClassname(String naming, String[] args)
           
protected  Object newConstructorInstance(InstanceInfo info, Class cl, Object loaderContext)
           
protected  Object newFactoryInstance(InstanceInfo info, Object factory, Object loaderContext)
           
 Object newInstance(InstanceInfo info, Object loaderContext)
           
protected  Object newMethodInstance(InstanceInfo info, Class cl, Object loaderContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStrategy

public SimpleStrategy()
Method Detail

forName

protected Class forName(org.jtools.activate.SimpleStrategy.ClassInfoHolder classInfoHolder)
                 throws ResourceException
Throws:
ResourceException

getClassname

protected String getClassname(String naming,
                              String[] args)

cbDomainExecute

public Object cbDomainExecute(Domain domain,
                              Object cbInfo,
                              String naming,
                              String[] args)
Specified by:
cbDomainExecute in interface Domain.ExecuteCallback

forDomainName

protected Class forDomainName(org.jtools.activate.SimpleStrategy.ClassInfoHolder classInfoHolder)
                       throws ResourceException
Throws:
ResourceException

forName

public Class forName(ClassInfo classInfo,
                     Object loaderContext,
                     int retry)
              throws ResourceException
Specified by:
forName in interface ClassnameStrategy
Throws:
ResourceException

newFactoryInstance

protected Object newFactoryInstance(InstanceInfo info,
                                    Object factory,
                                    Object loaderContext)
                             throws NoSuchMethodException,
                                    InvocationTargetException,
                                    IllegalAccessException
Throws:
NoSuchMethodException
InvocationTargetException
IllegalAccessException

newMethodInstance

protected Object newMethodInstance(InstanceInfo info,
                                   Class cl,
                                   Object loaderContext)
                            throws NoSuchMethodException,
                                   InvocationTargetException,
                                   IllegalAccessException
Throws:
NoSuchMethodException
InvocationTargetException
IllegalAccessException

newConstructorInstance

protected Object newConstructorInstance(InstanceInfo info,
                                        Class cl,
                                        Object loaderContext)
                                 throws NoSuchMethodException,
                                        InvocationTargetException,
                                        InstantiationException,
                                        IllegalAccessException
Throws:
NoSuchMethodException
InvocationTargetException
InstantiationException
IllegalAccessException

newInstance

public Object newInstance(InstanceInfo info,
                          Object loaderContext)
                   throws ResourceException
Specified by:
newInstance in interface InstantiateStrategy
Throws:
ResourceException

JTools

© 2000-2006, JTools.org.