001: /*
002: * Created on 30.04.2005 from Linke
003: *
004: */
005: package net.sf.crispy;
006:
007: /**
008: * Properties to config the ServiceManager.
009: *
010: * @todo Security is not used (user/password).
011: *
012: * @author Linke
013: *
014: */
015: public interface Property {
016:
017: /**
018: * Executor-Class-Name. Simulate Stubs.
019: */
020: public final static String EXECUTOR_CLASS = "crispy.prop.executor.class";
021: /**
022: * Property for Static-Proxy-Class-Name.
023: */
024: public final static String STATIC_PROXY_CLASS = "crispy.prop.static.proxy.class";
025: /*
026: * Replace the properties <code>EXECUTOR_CLASS</code> and <code>STATIC_PROXY_CLASS</code>.
027: *
028: * public final static String PROXY_CLASS_NAME = "crispy.prop.proxy.class.name";
029: */
030:
031: /** Property for Dynamic-Proxy-Class-Name. */
032: public final static String DYNAMIC_PROXY_CLASS = "crispy.prop.dynamic.proxy.class";
033:
034: /** Property for Url and Port from Server */
035: public final static String REMOTE_URL_AND_PORT = "crispy.prop.server.url";
036:
037: /** Implementation from the InvocationStrategy interface. */
038: public final static String INVOCATION_STRATEGY = "crispy.prop.invocation.strategy";
039: /** Name space for InvocationStrategy interface. If is not set, than is package of service class the name space. */
040: public final static String INVOCATION_STRATEGY_NAMESPACE = "crispy.prop.invocation.strategy.namespace";
041:
042: /**
043: * <code>Service-Interface-Name + EJB_HOME_INTERFACE.</code><br>
044: * Example: <br>
045: *
046: * <PRE>
047: * Properties prop = new Properties();
048: * prop.put(EjbService.class.getName() + Property.EJB_HOME_INTERFACE, EjbServiceHome.class.getName());
049: * </PRE>
050: */
051: public final static String EJB_HOME_INTERFACE = "_HomeInterface";
052: /**
053: * <code>net.sf.crispy.util.Converter</code> is used or not. The converter convert complex objects in
054: * primitive datatypes and back. Value for this property is <code>true</code> or <code>false</code>.
055: * @see net.sf.crispy.util.Converter
056: */
057: public final static String WITH_CONVERTER = "crispy.prop.with.converter";
058:
059: /** username. */
060: public final static String SECURITY_USER = "crispy.prop.security.user";
061: /** password. */
062: public final static String SECURITY_PASSWD = "crispy.prop.security.passwd";
063:
064: /** Class with Interceptor-Interface. */
065: public final static String INTERCEPTOR_CLASS = "crispy.prop.interceptor.class";
066: public final static String INTERCEPTOR_CLASS_2 = "crispy.prop.interceptor.class_2";
067: public final static String INTERCEPTOR_CLASS_3 = "crispy.prop.interceptor.class_3";
068:
069: /** Class with Modifier-Interface. */
070: public final static String MODIFIER_CLASS = "crispy.prop.modifier.class";
071:
072: /** Short-Name for the dynamic JDK (reflection) Proxy. */
073: public final static String VALUE_FOR_JDK_DYNAMIC_PROXY = "jdk_proxy";
074: /** Short-Name for the dynamic CGLIB Proxy. */
075: public final static String VALUE_FOR_CGLIB_DYNAMIC_PROXY = "cglib_proxy";
076: /** Short-Name for the dynamic Javassist Proxy. */
077: public final static String VALUE_FOR_JAVASSIST_DYNAMIC_PROXY = "javassist_proxy";
078:
079: /**
080: * Property for set extra debug mode for more information by problems to on/off.
081: * Default is off (false).
082: */
083: public final static String DEBUG_MODE_ON = "crispy.prop.debug.mode.on";
084:
085: /**
086: * If object properties can be <code>null</code> and the transport not supported null values
087: * (XML-RPC for example) you can substitute the null value with this property.
088: *
089: */
090: public final static String NULL_VALUE = "crispy.prop.null.value";
091:
092: /**
093: * If all execution of service invocation are asynchronous, then set a implementation from the
094: * interface <code>net.sf.crispy.AsynchronousCallback</code>.
095: */
096: public final static String ASYNCHRONOUS_CALLBACK_CLASS = "crispy.prop.asynchronous.callback.class";
097:
098: /**
099: * Define the max size of Threads for the asynchronus communication.
100: */
101: public final static String ASYNCHRONOUS_MAX_SIZE_OF_THREADS = "crispy.prop.asynchronous.max.size.of.threads";
102:
103: }
|