|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.beans.metadata.plugins.FromContext<T>
T - exact controller context typepublic abstract class FromContext<T extends org.jboss.dependency.spi.ControllerContext>
Inject from controller context: * name - controller context name * aliases - aliases * metadata - inject MetaData * beaninfo - BeanInfo * scope - ScopeKey * id - identifier * dynamic - method specific * ...
| Field Summary | |
|---|---|
static FromContext |
ALIASES
alias |
static FromContext |
BEANINFO
beaninfo |
static FromContext |
CONTEXT
context |
protected String |
fromString
The type string |
static FromContext |
ID
id |
static FromContext |
METADATA
metadata |
static FromContext |
NAME
name |
static FromContext |
SCOPE
scope |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
protected |
FromContext(String fromString)
Create a new state |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
Object |
executeLookup(org.jboss.dependency.spi.ControllerContext context)
Execute injection on context. |
String |
getFromString()
Get the from string |
protected int |
getHashCode()
|
static FromContext |
getInstance(String fromString)
Return from type. |
abstract Object |
internalExecute(T context)
Execute internal lookup on context. |
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
validate(org.jboss.dependency.spi.ControllerContext context)
Validate context before execution. |
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final FromContext NAME
public static final FromContext ALIASES
public static final FromContext METADATA
public static final FromContext BEANINFO
public static final FromContext SCOPE
public static final FromContext ID
public static final FromContext CONTEXT
protected final String fromString
| Constructor Detail |
|---|
protected FromContext(String fromString)
fromString - the string representation| Method Detail |
|---|
public static FromContext getInstance(String fromString)
fromString - type
protected void validate(org.jboss.dependency.spi.ControllerContext context)
context - the context
public Object executeLookup(org.jboss.dependency.spi.ControllerContext context)
throws Throwable
context - the target context
Throwable - for any error
public abstract Object internalExecute(T context)
throws Throwable
context - the target context
Throwable - for any errorpublic String getFromString()
public boolean equals(Object object)
equals in class Objectpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectprotected int getHashCode()
getHashCode in class org.jboss.util.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||