Created
October 3, 2018 10:14
-
-
Save ihopeudie/b2760c1c139390fb0a989178de0171f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="movieTheater" | |
class="com.epamacademy.springcourse.task1.cinema.MovieTheater" | |
init-method="init" | |
> | |
<property name="auditoriumSet"> | |
<set> | |
<bean class="com.epamacademy.springcourse.task1.domain.Auditorium" | |
p:name="Madison Square Garden" | |
p:numberOfSeats="30" | |
p:vipSeats="" | |
/> | |
</set> | |
</property> | |
<property name="auditorium"> | |
<bean class="com.epamacademy.springcourse.task1.domain.Auditorium" | |
p:name="Madison Square Garden" | |
p:numberOfSeats="30" | |
p:vipSeats="" | |
/> | |
</property> | |
</bean> | |
<!--private String name;--> | |
<!--private long numberOfSeats;--> | |
<!--private Set<Long> vipSeats = Collections.emptySet();--> | |
<bean id="auditorium" | |
class="com.epamacademy.springcourse.task1.domain.Auditorium" | |
scope="prototype" | |
/> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment