com.opensymphony.xwork2.config.impl
Class LocatableFactory

java.lang.Object
  extended by com.opensymphony.xwork2.util.location.Located
      extended by com.opensymphony.xwork2.config.impl.LocatableFactory
All Implemented Interfaces:
Factory, Locatable

public class LocatableFactory
extends Located
implements Factory

Attaches location information to the factory. Construction limited to no-arg constructors.


Field Summary
private  Class cls
           
 
Fields inherited from class com.opensymphony.xwork2.util.location.Located
location
 
Constructor Summary
LocatableFactory(Class cls, Object location)
           
 
Method Summary
 Object create(Context context)
          Creates an object to be injected.
 String toString()
           
 
Methods inherited from class com.opensymphony.xwork2.util.location.Located
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cls

private Class cls
Constructor Detail

LocatableFactory

public LocatableFactory(Class cls,
                        Object location)
Method Detail

create

public Object create(Context context)
              throws Exception
Description copied from interface: Factory
Creates an object to be injected.

Specified by:
create in interface Factory
Parameters:
context - of this injection
Returns:
instance to be injected
Throws:
Exception - if unable to create object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 OpenSymphony. All Rights Reserved.