net.m2technologies.open_arm.transaction
Class ArmTransactionFactoryImpl

java.lang.Object
  extended bynet.m2technologies.open_arm.transaction.ArmInterfaceImpl
      extended bynet.m2technologies.open_arm.transaction.ArmTransactionFactoryImpl
All Implemented Interfaces:
ArmErrorHandler, ArmInterface, ArmTransactionFactory, OpenArmUtilities
Direct Known Subclasses:
ArmTranReportFactoryImpl

public class ArmTransactionFactoryImpl
extends ArmInterfaceImpl
implements ArmTransactionFactory, ArmErrorHandler, OpenArmUtilities

Copyright 2005 Mark Masterson

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Description:

Version:
0.009
Author:
Mark Masterson

Field Summary
 
Fields inherited from class net.m2technologies.open_arm.transaction.ArmInterfaceImpl
HASH_CODE_MAGIC_NUMBER
 
Fields inherited from interface org.opengroup.arm40.transaction.ArmTransactionFactory
propertyKey
 
Constructor Summary
ArmTransactionFactoryImpl(TransportMediatorBroker transportMediatorBroker)
           
 
Method Summary
 void fireErrorEvent(ArmInterface originatingOject, java.lang.String methodName)
           
 RandomGUID getGuid()
           
 TransportMediatorBroker getTransportMediatorBroker()
           
 ArmApplication newArmApplication(ArmApplicationDefinition definition, java.lang.String group, java.lang.String instance, java.lang.String[] contextValues)
           
 ArmApplicationDefinition newArmApplicationDefinition(java.lang.String name, ArmIdentityProperties identityProperties, ArmID id)
           
 ArmCorrelator newArmCorrelator(byte[] corrBytes)
           
 ArmCorrelator newArmCorrelator(byte[] corrBytes, int offset)
           
 ArmID newArmID(byte[] idBytes)
           
 ArmID newArmID(byte[] idBytes, int offset)
           
 ArmIdentityProperties newArmIdentityProperties(java.lang.String[] identityNames, java.lang.String[] identityValues, java.lang.String[] contextNames)
           
 ArmIdentityPropertiesTransaction newArmIdentityPropertiesTransaction(java.lang.String[] identityNames, java.lang.String[] identityValues, java.lang.String[] contextNames, java.lang.String uriValue)
           
 ArmTransaction newArmTransaction(ArmApplication app, ArmTransactionDefinition definition)
           
 ArmTransactionDefinition newArmTransactionDefinition(ArmApplicationDefinition app, java.lang.String name, ArmIdentityPropertiesTransaction identityProperties, ArmID id)
           
 ArmUser newArmUser(java.lang.String name, ArmID id)
           
 void releaseGuid(RandomGUID guid)
           
 boolean setErrorCallback(ArmErrorCallback errorCallback)
           
 
Methods inherited from class net.m2technologies.open_arm.transaction.ArmInterfaceImpl
getCreatingFactory, getErrorCode, getErrorMessage, setErrorCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface
getErrorCode, getErrorMessage, setErrorCode
 

Constructor Detail

ArmTransactionFactoryImpl

public ArmTransactionFactoryImpl(TransportMediatorBroker transportMediatorBroker)
Method Detail

getTransportMediatorBroker

public TransportMediatorBroker getTransportMediatorBroker()
Specified by:
getTransportMediatorBroker in interface OpenArmUtilities

getGuid

public RandomGUID getGuid()
Specified by:
getGuid in interface OpenArmUtilities

releaseGuid

public void releaseGuid(RandomGUID guid)
Specified by:
releaseGuid in interface OpenArmUtilities

newArmApplication

public ArmApplication newArmApplication(ArmApplicationDefinition definition,
                                        java.lang.String group,
                                        java.lang.String instance,
                                        java.lang.String[] contextValues)
Specified by:
newArmApplication in interface ArmTransactionFactory

newArmApplicationDefinition

public ArmApplicationDefinition newArmApplicationDefinition(java.lang.String name,
                                                            ArmIdentityProperties identityProperties,
                                                            ArmID id)
Specified by:
newArmApplicationDefinition in interface ArmTransactionFactory

newArmCorrelator

public ArmCorrelator newArmCorrelator(byte[] corrBytes)
Specified by:
newArmCorrelator in interface ArmTransactionFactory

newArmCorrelator

public ArmCorrelator newArmCorrelator(byte[] corrBytes,
                                      int offset)
Specified by:
newArmCorrelator in interface ArmTransactionFactory

newArmID

public ArmID newArmID(byte[] idBytes)
Specified by:
newArmID in interface ArmTransactionFactory

newArmID

public ArmID newArmID(byte[] idBytes,
                      int offset)
Specified by:
newArmID in interface ArmTransactionFactory

newArmIdentityProperties

public ArmIdentityProperties newArmIdentityProperties(java.lang.String[] identityNames,
                                                      java.lang.String[] identityValues,
                                                      java.lang.String[] contextNames)
Specified by:
newArmIdentityProperties in interface ArmTransactionFactory

newArmIdentityPropertiesTransaction

public ArmIdentityPropertiesTransaction newArmIdentityPropertiesTransaction(java.lang.String[] identityNames,
                                                                            java.lang.String[] identityValues,
                                                                            java.lang.String[] contextNames,
                                                                            java.lang.String uriValue)
Specified by:
newArmIdentityPropertiesTransaction in interface ArmTransactionFactory

newArmTransaction

public ArmTransaction newArmTransaction(ArmApplication app,
                                        ArmTransactionDefinition definition)
Specified by:
newArmTransaction in interface ArmTransactionFactory

newArmTransactionDefinition

public ArmTransactionDefinition newArmTransactionDefinition(ArmApplicationDefinition app,
                                                            java.lang.String name,
                                                            ArmIdentityPropertiesTransaction identityProperties,
                                                            ArmID id)
Specified by:
newArmTransactionDefinition in interface ArmTransactionFactory

newArmUser

public ArmUser newArmUser(java.lang.String name,
                          ArmID id)
Specified by:
newArmUser in interface ArmTransactionFactory

setErrorCallback

public boolean setErrorCallback(ArmErrorCallback errorCallback)
Specified by:
setErrorCallback in interface ArmTransactionFactory

fireErrorEvent

public void fireErrorEvent(ArmInterface originatingOject,
                           java.lang.String methodName)
Specified by:
fireErrorEvent in interface ArmErrorHandler