public abstract class SimpleBeanProvider extends Object implements BeanProvider
A base class for simple bean providers.
A simple BeanProvider is a bean provider that only
cares for creating new bean instances. It does not have further support for
life-cycle features. Bean providers of this type are intended to collaborate
with a life-cycle-aware bean provider. This provider uses the simple bean
provider just for the creation and implements specific initialization
functionality.
This base class provides implementations for some of the methods defined in
the interface. Especially dummy
implementations for the locking methods are available, which are typically
not needed by simple providers.
BeanProvider
| Constructor and Description |
|---|
SimpleBeanProvider() |
| Modifier and Type | Method and Description |
|---|---|
Set<Dependency> |
getDependencies()
Returns the dependencies for this bean provider.
|
Long |
getLockID()
Returns the lock ID of the current transaction.
|
boolean |
isBeanAvailable()
Returns a flag whether the managed bean is available.
|
void |
setLockID(Long lid)
Sets the lock ID of the current transaction.
|
void |
shutdown(DependencyProvider depProvider)
Shuts down this
BeanProvider. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBean, getBeanClasspublic Set<Dependency> getDependencies()
getDependencies in interface BeanProviderDependencypublic Long getLockID()
getLockID in interface BeanProviderpublic void setLockID(Long lid)
setLockID in interface BeanProviderlid - the lock ID of the current transactionBeanProvider.getLockID()public boolean isBeanAvailable()
isBeanAvailable in interface BeanProviderpublic void shutdown(DependencyProvider depProvider)
BeanProvider. This implementation is just an
empty dummy; a simple bean provider does not need any special shutdown
handling.shutdown in interface BeanProviderdepProvider - the DependencyProviderCopyright © 2016 The JGUIraffe Team. All rights reserved.