Archive for March, 2010

Caching Techniques using spring AOP

<!– Implementation of Data Service & Caching Advice : –>
<aop:config>
<!– Data Caching Advice –>
<aop:advisor id=”referenceCachingAdvisor” pointcut=”execution(* com.interface101.xml.impl.ReferenceDataImpl.getReferenceData(..))”
advice-ref=”methodCachingAdvice” />
</aop:config>

<bean id=”methodCachingAdvice”>
<property name=”cache”>
<ref local=”methodCache” />
</property>
</bean>
<!– Begin Cache Configuration –>
<bean id=”cacheManager”>
<property name=”configLocation”>
<value>classpath:ehcache.xml</value>
</property>
<property name=”shared”>
<value>true</value>
</property>
</bean>
<bean id=”methodCache”>
<property name=”cacheManager”>
<ref local=”cacheManager” />
</property>
<property name=”cacheName”>
<value>cache.REFERENCE_DATA_CACHE</value>
</property>
</bean>

Advertisements

Comments (2)

Building SWC File using FlexMojos plugins in Maven

<?xml version=”1.0″ encoding=”UTF-8″?>
<project xmlns=”http://maven.apache.org/POM/4.0.0&#8243; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”&gt;


<modelVersion>4.0.0</modelVersion>
<groupId>interface101-flex-security</groupId>
<artifactId>interface101-flex-security</artifactId>
<version>0.0.1</version>
<packaging>swc</packaging>

<build>
<defaultGoal>install</defaultGoal>
<sourceDirectory>src/main/flex</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.2.0</version>
<extensions>true</extensions>
<configuration>
<targetPlayer>10.0.0</targetPlayer>
<allowSourcePathOverlap>true</allowSourcePathOverlap>
<namespaces>
<namespace>
<uri>http://www.interface101.com/admin/security</uri&gt;
<manifest>src/main/resources/manifest.xml</manifest>
</namespace>
</namespaces>
<includeNamespaces>
<namespace>http://www.interface101.com/admin/security</namespace&gt;
</includeNamespaces>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>flex-support</groupId>
<artifactId>flex-support</artifactId>
<version>1.0.0</version>
<type>swc</type>
<scope>external</scope>
</dependency>
</dependencies>
</project>

Leave a Comment