Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

adapter class

Former Member
0 Likes
870

hi what is adapter class.what is the use of it

3 REPLIES 3
Read only

Former Member
0 Likes
635

Hi,

Just go through below link

I hpe it helps u.

Read only

Former Member
0 Likes
635

hi,

Adapters enable the Integration Engine and the Partner Connectivity Kit (PCK) to communicate with different applications.

Adapters connect the Integration Engine to SAP legacy systems, as well as to external systems.

In this way, adapters integrate existing SAP components with SAP Exchange Infrastructure, for example. In the process, XML and HTTP-based documents are converted to IDocs (IDoc adapter) and RFCs (RFC adapter) and the other way around. This enables you to integrate your existing SAP infrastructure with the new SAP infrastructure, which is based on system integration and the exchange of XML messages.

pls check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm

Read only

former_member188594
Active Participant
0 Likes
635

Hi,

In computer programming, the adapter design pattern (often referred to as the wrapper pattern or simply a wrapper) 'adapts' one interface for a class into one that a client expects. An adapter allows classes to work together that normally could not because of incompatible interfaces by wrapping its own interface around that of an already existing class. The adapter is also responsible for handling any logic necessary to transform data into a form that is useful for the consumer. For instance, if multiple boolean values are stored as a single integer but your consumer requires a 'true'/'false', the adapter would be responsible for extracting the appropriate values from the integer value.

Structure:

There are two types of adapter patterns:

Object Adapter pattern

In this type of adapter pattern, the adapter contains an instance of the class it wraps. In this situation, the adapter makes calls to the instance of the wrapped object.

ADAPTEE

+methodB ( )

^

CLIENT -


> ADAPTER

+adapter : adapter +adaptee : adaptee

+doWork ( ) +methodA ( )

V V

adapter.methodA ( ) ; adapter.methodB ( );

The object adapter pattern expressed in UML. The adapter hides the adaptee's interface from the client.

For more detail explaination with diagrams refer the following link:

http://en.wikipedia.org/wiki/Wrapper_pattern#Sample_-_Class_Adapter

Reward points if my attempt made you to understand what an adapter class is.

Regards,

Sekhar