public class Resource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Resource.MBeanInit |
class |
Resource.MBeanListener |
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
void |
addArg(java.lang.Object arg)
Adds an argument.
|
void |
addInit(ContainerProgram init)
Adds the init program
|
java.lang.Object |
createListener()
Adds the listener program
|
java.lang.Object |
createMbeanListener()
Adds the listener program
|
java.lang.String |
getJndiName()
Gets the JNDI name
|
java.lang.String |
getMbeanName()
Gets the mbean name
|
java.lang.String |
getName()
Gets the WebBeans name
|
java.lang.Class<?> |
getType()
Gets the type;
|
void |
init()
Initialize the resource.
|
void |
setClass(java.lang.Class<?> resourceClass)
Sets the class
|
void |
setJndiName(java.lang.String name)
Sets the JNDI name
|
void |
setLocalTransactionOptimization(boolean enable)
Sets the local-transaction-optimization flag
|
void |
setMbeanInterface(java.lang.Class<?> cl)
Sets the class
|
void |
setMbeanName(java.lang.String name)
Sets the mbean name
|
void |
setName(java.lang.String name)
Sets the WebBeans name
|
void |
setShareable(boolean shareable)
Sets the shareable
|
void |
setType(java.lang.Class<?> resourceClass)
Sets the class
|
void |
setVar(java.lang.String var)
Sets the config variable name.
|
java.lang.String |
toString() |
public void setVar(java.lang.String var)
public void setJndiName(java.lang.String name)
public java.lang.String getJndiName()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setMbeanName(java.lang.String name)
public java.lang.String getMbeanName()
public void setType(java.lang.Class<?> resourceClass)
public void setClass(java.lang.Class<?> resourceClass)
public java.lang.Class<?> getType()
public void setMbeanInterface(java.lang.Class<?> cl)
public void addArg(java.lang.Object arg)
public void setLocalTransactionOptimization(boolean enable)
public void setShareable(boolean shareable)
public void addInit(ContainerProgram init)
public java.lang.Object createListener() throws java.lang.Exception
java.lang.Exception
public java.lang.Object createMbeanListener() throws java.lang.Exception
java.lang.Exception
@PostConstruct public void init() throws java.lang.Throwable
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object