org.sakaiproject.metaobj.shared.mgt.factories
Class BinaryFileHomeFactoryImpl

java.lang.Object
  extended byorg.sakaiproject.metaobj.shared.mgt.factories.HomeFactoryBase
      extended byorg.sakaiproject.metaobj.shared.mgt.factories.BinaryFileHomeFactoryImpl
All Implemented Interfaces:
HomeFactory

public class BinaryFileHomeFactoryImpl
extends HomeFactoryBase
implements HomeFactory

Created by IntelliJ IDEA. User: John Ellis Date: Apr 13, 2004 Time: 11:40:51 AM To change this template use File | Settings | File Templates.


Constructor Summary
BinaryFileHomeFactoryImpl()
           
 
Method Summary
 ReadableObjectHome getHome(String objectType)
          Get a home for the given object type.
 Map getHomes()
          let injection set this for now...
 boolean handlesType(String objectType)
          Check to see if this home factory is responsible for the passed in object type
 void setHomes(Map homes)
           
 
Methods inherited from class org.sakaiproject.metaobj.shared.mgt.factories.HomeFactoryBase
addHome, findHomeByExternalId, getHomes, getWorksiteHomes, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.metaobj.shared.mgt.HomeFactory
findHomeByExternalId, getHomes, getWorksiteHomes, reload
 

Constructor Detail

BinaryFileHomeFactoryImpl

public BinaryFileHomeFactoryImpl()
Method Detail

handlesType

public boolean handlesType(String objectType)
Description copied from interface: HomeFactory
Check to see if this home factory is responsible for the passed in object type

Specified by:
handlesType in interface HomeFactory
Parameters:
objectType -
Returns:
true if this home factory handles the specified object type

getHome

public ReadableObjectHome getHome(String objectType)
Description copied from interface: HomeFactory
Get a home for the given object type. The returned home may support a number of interfaces depending on the features of this home. At a minimum, the home must support ReadableObjectHome interface.

Specified by:
getHome in interface HomeFactory
Parameters:
objectType -
Returns:
a home suitable for reading the object, but it may support other home interfaces

getHomes

public Map getHomes()
let injection set this for now... will eventually load from the db

Specified by:
getHomes in interface HomeFactory
Returns:
map of object type to home

setHomes

public void setHomes(Map homes)