Java Doc for ComponentImpl.java in » EJB-Server-resin-3.1.5 » resin » com » caucho » webbeans » component » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
EJB Server resin 3.1.5
»
resin
»
com.caucho.webbeans.component
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.caucho.webbeans.component
.ComponentImpl
All known Subclasses:
com.caucho.webbeans.component
.FactoryComponent
,
com.caucho.ejb.session
.StatefulComponent
,
com.caucho.webbeans.component
.ObjectProxyComponent
,
com.caucho.webbeans.component
.ClassComponent
,
com.caucho.webbeans.component
.ProducesComponent
,
com.caucho.ejb.session
.StatelessComponent
,
ComponentImpl
public
class ComponentImpl implements ComponentFactory,
ObjectProxy
(Code)
Configuration for the xml web bean component.
Field Summary
protected
ConfigProgram
[]
_destroyProgram
protected
ConfigProgram
[]
_initProgram
protected
ConfigProgram
[]
_injectProgram
protected
ScopeContext
_scope
protected
WbWebBeans
_webbeans
Constructor Summary
public
ComponentImpl
(
WbWebBeans
webbeans)
Method Summary
public
void
addNameBinding
(
String
name)
public
void
addProgram
(
ConfigProgram
program)
Add to the init program.
public
void
bind
()
public
Object
create
()
Creates a new instance of the component.
protected
Object
createNew
(
ConfigContext
env)
public
Object
createNoInit
()
Creates a new instance of the component.
public
Object
createObject
(
Hashtable
env)
public
void
createProgram
(
ArrayList
<
ConfigProgram
> initList,
Field
field)
public
void
destroy
(
Object
value,
ConfigContext
env)
public
void
destroy
(
Object
value)
public
boolean
equals
(
Object
obj)
protected
ConfigException
error
(
Method
method,
String
msg)
public
Object
get
()
public
Object
get
(
ConfigContext
env)
public
ArrayList
<
WbBinding
>
getBindingList
()
public
String
getClassName
()
public
WebBeansHandle
getHandle
()
public
Object
getIfExists
()
public
String
getName
()
Gets the component's EL binding name.
public
ScopeContext
getScope
()
Gets the scope annotation.
public
String
getScopeId
()
protected
static
String
getSimpleName
(
Type
type)
public
Class
getTargetClass
()
public
String
getTargetSimpleName
()
public
Type
getTargetType
()
public
WbComponentType
getType
()
Gets the component type.
public
WbWebBeans
getWebBeans
()
public
void
init
()
Initialization.
protected
Object
init
(
Object
value,
ConfigContext
env)
protected
void
introspect
()
protected
void
introspectBindings
()
protected
void
introspectScope
(
Class
type)
Called for implicit introspection.
public
boolean
isDestroyPresent
()
Returns true if there's a destroy program.
public
boolean
isFromClass
()
True if the component was defined by class introspection.
public
boolean
isMatch
(
ArrayList
<
Annotation
> bindList)
public
boolean
isMatch
(
Annotation
bindAnn)
Returns true if at least one of this component's bindings match the injection binding.
public
boolean
isMatchByBinding
(
ArrayList
<
Binding
> bindList)
public
boolean
isMatchByBinding
(
Binding
binding)
Returns true if at least one of this component's bindings match the injection binding.
public
boolean
isSingleton
()
public
void
setBindingList
(
ArrayList
<
WbBinding
> bindingList)
Adds a component binding.
public
void
setFromClass
(boolean isFromClass)
True if the component was defined by class introspection.
public
void
setInit
(
ContainerProgram
init)
Sets the init program.
public
void
setName
(
String
name)
Returns the component's EL binding name.
public
void
setScope
(
ScopeContext
scope)
Sets the scope annotation.
public
void
setTargetType
(
Type
type)
public
void
setType
(
WbComponentType
type)
Sets the component type.
public
String
toDebugString
()
public
String
toString
()
Field Detail
_destroyProgram
protected
ConfigProgram
[] _destroyProgram
(Code)
_initProgram
protected
ConfigProgram
[] _initProgram
(Code)
_injectProgram
protected
ConfigProgram
[] _injectProgram
(Code)
_scope
protected
ScopeContext
_scope
(Code)
_webbeans
protected
WbWebBeans
_webbeans
(Code)
Constructor Detail
ComponentImpl
public
ComponentImpl(
WbWebBeans
webbeans)
(Code)
Method Detail
addNameBinding
public
void addNameBinding(
String
name)
(Code)
addProgram
public
void addProgram(
ConfigProgram
program)
(Code)
Add to the init program.
bind
public
void bind()
(Code)
Binds parameters
create
public
Object
create()
(Code)
Creates a new instance of the component.
createNew
protected
Object
createNew(
ConfigContext
env)
(Code)
Creates a new instance of the component
Parameters:
env - the configuration environment the new object
createNoInit
public
Object
createNoInit()
(Code)
Creates a new instance of the component.
createObject
public
Object
createObject(
Hashtable
env)
(Code)
Returns the new object for JNDI
createProgram
public
void createProgram(
ArrayList
<
ConfigProgram
> initList,
Field
field) throws ConfigException
(Code)
destroy
public
void destroy(
Object
value,
ConfigContext
env)
(Code)
Destroys the value
destroy
public
void destroy(
Object
value)
(Code)
Destroys the value
equals
public
boolean equals(
Object
obj)
(Code)
error
protected
ConfigException error(
Method
method,
String
msg)
(Code)
get
public
Object
get()
(Code)
Returns the component object, creating if necessary
get
public
Object
get(
ConfigContext
env)
(Code)
getBindingList
public
ArrayList
<
WbBinding
> getBindingList()
(Code)
getClassName
public
String
getClassName()
(Code)
getHandle
public
WebBeansHandle
getHandle()
(Code)
Returns the serialization handle
getIfExists
public
Object
getIfExists()
(Code)
Returns the component object if it already exists
getName
public
String
getName()
(Code)
Gets the component's EL binding name.
getScope
public
ScopeContext
getScope()
(Code)
Gets the scope annotation.
getScopeId
public
String
getScopeId()
(Code)
getSimpleName
protected
static
String
getSimpleName(
Type
type)
(Code)
getTargetClass
public
Class
getTargetClass()
(Code)
getTargetSimpleName
public
String
getTargetSimpleName()
(Code)
getTargetType
public
Type
getTargetType()
(Code)
getType
public
WbComponentType
getType()
(Code)
Gets the component type.
getWebBeans
public
WbWebBeans
getWebBeans()
(Code)
init
public
void init()
(Code)
Initialization.
init
protected
Object
init(
Object
value,
ConfigContext
env)
(Code)
Initialize the created value
introspect
protected
void introspect()
(Code)
introspectBindings
protected
void introspectBindings()
(Code)
Introspects the methods for any @Produces
introspectScope
protected
void introspectScope(
Class
type)
(Code)
Called for implicit introspection.
isDestroyPresent
public
boolean isDestroyPresent()
(Code)
Returns true if there's a destroy program.
isFromClass
public
boolean isFromClass()
(Code)
True if the component was defined by class introspection.
isMatch
public
boolean isMatch(
ArrayList
<
Annotation
> bindList)
(Code)
isMatch
public
boolean isMatch(
Annotation
bindAnn)
(Code)
Returns true if at least one of this component's bindings match the injection binding.
isMatchByBinding
public
boolean isMatchByBinding(
ArrayList
<
Binding
> bindList)
(Code)
isMatchByBinding
public
boolean isMatchByBinding(
Binding
binding)
(Code)
Returns true if at least one of this component's bindings match the injection binding.
isSingleton
public
boolean isSingleton()
(Code)
setBindingList
public
void setBindingList(
ArrayList
<
WbBinding
> bindingList)
(Code)
Adds a component binding.
setFromClass
public
void setFromClass(boolean isFromClass)
(Code)
True if the component was defined by class introspection.
setInit
public
void setInit(
ContainerProgram
init)
(Code)
Sets the init program.
setName
public
void setName(
String
name)
(Code)
Returns the component's EL binding name.
setScope
public
void setScope(
ScopeContext
scope)
(Code)
Sets the scope annotation.
setTargetType
public
void setTargetType(
Type
type)
(Code)
setType
public
void setType(
WbComponentType
type)
(Code)
Sets the component type.
toDebugString
public
String
toDebugString()
(Code)
toString
public
String
toString()
(Code)
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.