org.shapelogic.logic
Class ContextFactory

java.lang.Object
  extended by org.shapelogic.logic.ContextFactory

public class ContextFactory
extends java.lang.Object

Author:
Sami Badawi The idea is that based on a context and a name you should be able to get any value back Where should they come from. Anything that is calculate already is not a problem. What are the keys? Maybe a class, name pair name How is the different from a normal context? A normal context is mainly a map, and that is already in the JEXL context. If something is not there what should be done? This could be the place where it will try to create missing objects. How should that be done? I could have a Guice module.

Constructor Summary
ContextFactory()
           
 
Method Summary
static java.lang.Object getFromContext(org.apache.commons.jexl.JexlContext context, java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactory

public ContextFactory()
Method Detail

getFromContext

public static java.lang.Object getFromContext(org.apache.commons.jexl.JexlContext context,
                                              java.lang.Object key)


Copyright © 2008. All Rights Reserved.