org.onebusaway.webapp.impl
Class GWTAbstractFactory

java.lang.Object
  extended by org.onebusaway.webapp.impl.GWTAbstractFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean
Direct Known Subclasses:
GWTMessagesFactory

public abstract class GWTAbstractFactory
extends Object
implements org.springframework.beans.factory.FactoryBean


Field Summary
protected  Class<?> _type
           
 
Constructor Summary
GWTAbstractFactory(Class<?> parentType)
           
 
Method Summary
protected abstract  Object createInstance()
          Private Methods
 Object getObject()
           
 Class<?> getObjectType()
          FactoryBean Interface
 boolean isSingleton()
           
 void setSingleton(boolean singleton)
           
 void setType(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_type

protected Class<?> _type
Constructor Detail

GWTAbstractFactory

public GWTAbstractFactory(Class<?> parentType)
Method Detail

setType

public void setType(Class<?> type)

setSingleton

public void setSingleton(boolean singleton)

getObjectType

public Class<?> getObjectType()
FactoryBean Interface

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

createInstance

protected abstract Object createInstance()
                                  throws Exception
Private Methods

Throws:
Exception


Copyright © 2011 OneBusAway. All Rights Reserved.