org.apache.openejb.config.typed
Class SingletonContainerBuilder
java.lang.Object
org.apache.openejb.config.sys.AbstractService
org.apache.openejb.config.sys.Container
org.apache.openejb.config.typed.SingletonContainerBuilder
- All Implemented Interfaces:
- Service
public class SingletonContainerBuilder
- extends Container
| Methods inherited from class org.apache.openejb.config.sys.AbstractService |
equals, getClassName, getConstructor, getFactoryName, getId, getJar, getProvider, getType, hashCode, setClassName, setConstructor, setFactoryName, setId, setJar, setProvider, setType |
SingletonContainerBuilder
public SingletonContainerBuilder()
id
public SingletonContainerBuilder id(String id)
withAccessTimeout
public SingletonContainerBuilder withAccessTimeout(Duration accessTimeout)
setAccessTimeout
public void setAccessTimeout(Duration accessTimeout)
getAccessTimeout
public Duration getAccessTimeout()
withAccessTimeout
public SingletonContainerBuilder withAccessTimeout(long time,
TimeUnit unit)
setAccessTimeout
public void setAccessTimeout(long time,
TimeUnit unit)
getProperties
public Properties getProperties()
- Description copied from class:
AbstractService
- Gets the value of the properties property.
This accessor method returns a reference to the live Properties Object,
not a snapshot. Therefore any modification you make to the
returned Properties will be present inside the JAXB object.
This is why there is not a
set method for the properties property.
For example, to add a new value, do as follows:
getProperties().setProperty(key, value);
- Specified by:
getProperties in interface Service- Overrides:
getProperties in class AbstractService
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.