|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlai.client.DesignTimeHelper
This class provides utility methods for interacting with the AI client manager EJBs for doing common design time tasks. This class is helpful for other environments outside the standard design-time framework provided by WLI.
Field Summary | |
static java.lang.String |
CONNECTION_FACTORY_MANAGER
|
static java.lang.String |
DEPLOY_MANAGER
|
protected java.util.Hashtable |
m_jndiEnv
|
static java.lang.String |
NAMESPACE_MANAGER
|
static java.lang.String |
SCHEMA_MANAGER
|
protected ApplicationViewManager |
t_appViewManager
|
protected ConnectionFactoryManager |
t_connectionFactoryManager
|
protected DeployManager |
t_deployManager
|
protected javax.naming.Context |
t_jndiContext
|
protected NamespaceManager |
t_namespaceManager
|
protected com.bea.document.internal.ClasspathEntityResolver |
t_resolver
|
protected SchemaManager |
t_schemaManager
|
Constructor Summary | |
DesignTimeHelper()
Constructor for server-side components that can establish an InitialContext without any JNDI environment properties. |
|
DesignTimeHelper(javax.naming.Context context)
Constructor for client-side components that already have a JNDI context |
|
DesignTimeHelper(java.util.Hashtable jndiEnv)
Constructor for client-side components that need to establish JNDI environment properties to obtain an InitialContext |
Method Summary | |
void |
addEventSchemaToRepository(IApplicationViewDescriptor avd,
IEventDescriptor ed,
IDocumentDefinition eventDef)
Adds the schema for an event to the repository. |
IDocumentDescriptor |
addOrUpdateSchema(SchemaManager schemaManager,
QualifiedName schemaQName,
IDocumentDefinition def)
|
void |
addServiceSchemasToRepository(IApplicationViewDescriptor avd,
IServiceDescriptor sd,
IDocumentDefinition requestDef,
IDocumentDefinition responseDef)
Adds the request and response schemas for a service to the repository. |
void |
close()
Frees any resources held by this instance |
ApplicationView |
getApplicationView(java.lang.String strQualifiedName)
Returns a deployed ApplicationView instance from strQualifiedName . |
IApplicationViewDescriptor |
getApplicationViewDescriptor(java.lang.String strQualifiedName)
|
ApplicationViewManager |
getApplicationViewManager()
|
IConnectionFactoryDescriptor |
getConnectionFactoryDescriptor(java.lang.String strQualifiedName)
|
ConnectionFactoryManager |
getConnectionFactoryManager()
|
java.lang.String |
getContent(IDocument doc,
java.lang.String strPath,
boolean bIsMandatory)
Return the content of an XML element as a String |
DeployManager |
getDeployManager()
|
org.xml.sax.EntityResolver |
getEntityResolver()
|
IEventDefinition |
getEventDefinition(IEventDescriptor event)
|
javax.naming.Context |
getJNDIContext()
|
NamespaceManager |
getNamespaceManager()
|
QualifiedName |
getQualifiedName(java.lang.String strQualifiedName)
Get a QualifiedName for String strQualifiedName ; this
method will create namespaces as needed in order to fulfill the request. |
QualifiedName |
getQualifiedName(java.lang.String strQualifiedName,
boolean bCreateIfNeeded)
Get a QualifiedName for String strQualifiedName ; if
bCreateIfNeeded is true, then this method will create
namespaces as needed in order to fulfill the request. |
SchemaManager |
getSchemaManager()
|
IDocument |
readDocument(java.io.File f)
Reads a document from a file |
IDocument |
readDocument(java.lang.String strFile)
Reads a document from a file |
void |
removeExistingNamespace(QualifiedName namespaceQName,
boolean bWarningsOnly)
Tries to remove everything from a namespace gracefully...if bWarningsOnly is true, then an exception generated while attempting to remove a namespace object is treated as a warning, i.e. |
void |
writeDocument(IDocument doc,
java.io.File f)
Writes a document to a file; UTF-8 encoded |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String CONNECTION_FACTORY_MANAGER
public static final java.lang.String NAMESPACE_MANAGER
public static final java.lang.String DEPLOY_MANAGER
public static final java.lang.String SCHEMA_MANAGER
protected java.util.Hashtable m_jndiEnv
protected transient ApplicationViewManager t_appViewManager
protected transient NamespaceManager t_namespaceManager
protected transient ConnectionFactoryManager t_connectionFactoryManager
protected transient DeployManager t_deployManager
protected transient SchemaManager t_schemaManager
protected transient com.bea.document.internal.ClasspathEntityResolver t_resolver
protected transient javax.naming.Context t_jndiContext
Constructor Detail |
public DesignTimeHelper() throws javax.naming.NamingException
public DesignTimeHelper(java.util.Hashtable jndiEnv) throws javax.naming.NamingException
public DesignTimeHelper(javax.naming.Context context) throws javax.naming.NamingException
Method Detail |
public void close()
public org.xml.sax.EntityResolver getEntityResolver()
public javax.naming.Context getJNDIContext() throws javax.naming.NamingException
public ApplicationViewManager getApplicationViewManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public ConnectionFactoryManager getConnectionFactoryManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public NamespaceManager getNamespaceManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, NamespaceException
public SchemaManager getSchemaManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public DeployManager getDeployManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public void removeExistingNamespace(QualifiedName namespaceQName, boolean bWarningsOnly) throws java.lang.Exception
public void addServiceSchemasToRepository(IApplicationViewDescriptor avd, IServiceDescriptor sd, IDocumentDefinition requestDef, IDocumentDefinition responseDef) throws java.lang.Exception
public void addEventSchemaToRepository(IApplicationViewDescriptor avd, IEventDescriptor ed, IDocumentDefinition eventDef) throws java.lang.Exception
public IDocumentDescriptor addOrUpdateSchema(SchemaManager schemaManager, QualifiedName schemaQName, IDocumentDefinition def) throws java.lang.Exception
public QualifiedName getQualifiedName(java.lang.String strQualifiedName) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, NamespaceException
strQualifiedName
; this
method will create namespaces as needed in order to fulfill the request.
public QualifiedName getQualifiedName(java.lang.String strQualifiedName, boolean bCreateIfNeeded) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, NamespaceException
strQualifiedName
; if
bCreateIfNeeded
is true, then this method will create
namespaces as needed in order to fulfill the request.
public ApplicationView getApplicationView(java.lang.String strQualifiedName) throws ApplicationViewException, javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, NamespaceException
strQualifiedName
.
public IApplicationViewDescriptor getApplicationViewDescriptor(java.lang.String strQualifiedName) throws ApplicationViewException, DuplicateNameException, javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, NamespaceException
public IConnectionFactoryDescriptor getConnectionFactoryDescriptor(java.lang.String strQualifiedName) throws ConnectionFactoryException, DuplicateNameException, javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, NamespaceException
public IEventDefinition getEventDefinition(IEventDescriptor event) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, NamespaceException, SchemaException
public IDocument readDocument(java.lang.String strFile) throws java.io.IOException, DocumentException
strFile
- - name of a file containing a document; this is typically
an application view or connection factory descriptor for design time.public IDocument readDocument(java.io.File f) throws java.io.IOException, DocumentException
f
- - file containing a document; this is typically an application
view or connection factory descriptor for design time.public void writeDocument(IDocument doc, java.io.File f) throws java.io.IOException, DocumentException
public java.lang.String getContent(IDocument doc, java.lang.String strPath, boolean bIsMandatory) throws java.lang.Exception
doc
- - the document containing the desired contentstrPath
- - the XPath to the contentbIsMandatory
- - true indicates that the content is required to be
non-null, non-empty
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |